定义仅具有实数系数的一个变量的二阶多项式函数。 Defines functions for 2nd order polynomial functions of one variable with only real coefficients.
方法 Methods
提供二次方程与所提供系数的判别式。 Provides the discriminant of the quadratic equation from the supplied coefficients.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
a |
number | 二阶单项式的系数。 The coefficient of the 2nd order monomial. |
b |
number | 一阶单项式的系数。 The coefficient of the 1st order monomial. |
c |
number | 0 阶单项式的系数。 The coefficient of the 0th order monomial. |
返回: Returns:
判别式的值。 The value of the discriminant.
提供具有所提供系数的二次多项式的实值根。 Provides the real valued roots of the quadratic polynomial with the provided coefficients.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
a |
number | 二阶单项式的系数。 The coefficient of the 2nd order monomial. |
b |
number | 一阶单项式的系数。 The coefficient of the 1st order monomial. |
c |
number | 0 阶单项式的系数。 The coefficient of the 0th order monomial. |
返回: Returns:
真正有价值的根源。 The real valued roots.
