Click or drag to resize

QuadraticRealPolynomialDiscriminant Method (Double, Double, Double)

Provides the discriminant of the quadratic equation from the supplied coefficients.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static double Discriminant(
	double a,
	double b,
	double c
)

Parameters

a
Type: SystemDouble
The coefficient of the 2nd order monomial.
b
Type: SystemDouble
The coefficient of the 1st order monomial.
c
Type: SystemDouble
The coefficient of the 0th order monomial.

Return Value

Type: Double
The value of the discriminant.
Remarks
Note that when computing RealRoots, a tolerance is used that may cause the number of roots to differ relative to what analysis of the discriminant would imply.
See Also