| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace Yw.WinFrmUI.Q3D |
| | | namespace Yw.WinFrmUI.Q3d |
| | | { |
| | | public class MathSolver |
| | | { |
| | | static double ErrNum = -1; |
| | | public static List<double> Solve(double a,double b,double c) |
| | | public static List<double> Solve(double a, double b, double c) |
| | | { |
| | | // 求解二次方程 ax^2 + bx + c = 0 |
| | | double delta = b * b - 4 * a * c; |
| | |
| | | return null; |
| | | } |
| | | } |
| | | public static List<double> Solve(double a,double b,double c,double d) |
| | | public static List<double> Solve(double a, double b, double c, double d) |
| | | { |
| | | double[] roots = null; |
| | | roots = new double[3]; |