Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 17, 2020 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/da2626816bad1e36583e2499054c53f1 to your computer and use it in GitHub Desktop.
Save parzibyte/da2626816bad1e36583e2499054c53f1 to your computer and use it in GitHub Desktop.
float resolverEcuacion(float valor) {
// Con la ecuación: x^3 + 4x^2 -10
return pow(valor, 3) + 4 * pow(valor, 2) - 10;
}
float resolverDerivada(float valor) {
// Con la ecuación: 2x^2 + 8x
return pow((2 * valor), 2) + 8 * valor;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment