Click or drag to resize

QuadraticRealPolynomial.RealRoots Method (Double, Double, Double)

Provides the real valued roots of the real polynomial with the provided coefficients.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static double[] RealRoots(
	double a,
	double b,
	double c
)

Parameters

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

Return Value

Type:Double[]
An array containing the real valued roots, or an empty array if none.
See Also