RealPolynomial.SolveQuadric (Double, Double, Double, out Double, out Double) Method

Solves the equation ax^2+bx+c. Returns true if it was solvable. If not solvable, x1 and y1 is set to Nan. The results x1 is always less or equal to x2, ie result are sorted.
public static bool SolveQuadric( 
   double a
   double b
   double c
   out double x1
   out double x2 
)

Parameters

a
double

b
double

c
double

x1
double

x2
double

Return Value

bool

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition