-
-
Save parzibyte/80d7a580fc834b0eb5239c84c987d1e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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