Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 17, 2020 05:59
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/80d7a580fc834b0eb5239c84c987d1e7 to your computer and use it in GitHub Desktop.
Save parzibyte/80d7a580fc834b0eb5239c84c987d1e7 to your computer and use it in GitHub Desktop.
double resolverEcuacion(double valor) {
// Con la ecuación: x^3-7x^2+14x-6
return pow(valor, 3) - 7 * pow(valor, 2) + 14 * valor - 6;
}
double obtenerxr(double a, double b, double fa, double fb) {
return ((a * fb) - (b * fa)) / (fb - fa);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment