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 Shared Function SolveQuadric( _ 
ByVal a As Double, _ 
ByVal b As Double, _ 
ByVal c As Double, _ 
ByRef x1 As Double, _ 
ByRef x2 As Double
) As Boolean
This language is not supported or no code example is available.
public static bool SolveQuadric( 
double a
double b
double c
out double x1
out double x2 
)
This language is not supported or no code example is available.
public:  
static bool SolveQuadric( 
double a
double b
double c
double& x1
double& x2 
)
This language is not supported or no code example is available.
public static function SolveQuadric( 
a : double
b : double
c : double
x1 : double
x2 : double 
) : boolean;
This language is not supported or no code example is available.

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