This file contains hidden or 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
| //Code1-Solving a Biquadratic equation assuming it has 4 real roots | |
| #include<iostream> | |
| #include<cmath> | |
| using namespace std; | |
| float minima1,minima2,maxima,ans1,ans2,ans3,ans4; | |
| void cubic(int a, int b, int c, int d) | |
| { | |
| //assuming we have a biquadratic equation such that it has 2 minimas and 1 maxima | |
| double determinant; |
This file contains hidden or 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
| #include<iostream> | |
| #include<cmath> | |
| using namespace std; | |
| float minima1,minima2,maxima,ans1,ans2,ans3,ans4; | |
| void cubic(int a, int b, int c, int d) | |
| { | |
| //assuming we have a biquadratic equation such that it has 2 minimas and 1 maxima | |
| int determinant; | |
| determinant=4*(b)*(b)-12*a*c; |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <iomanip> | |
| #include <cmath> | |
| #include <stdexcept> | |
| #include <algorithm> | |
| using namespace std; | |
| const double EPS = 1e-9; |