Signature (Visual Basic / VBA)
Public Function QuadraticExpr( _
ByVal vA As Variant _
, ByVal vB As Variant _
, ByVal vC As Variant _
, ByVal vX As Variant _
) As Variant
Code Example
QuadraticExpr(-1, -2, -3, 3) = -18
QuadraticExpr(-1, -2, -3, 0) = -3
QuadraticExpr(2, -3, 4, 6) = 58
QuadraticExpr("-2|-1.5", -3, 4, 6) = "-86|-54"
Notes & Version History
| vA, vB, vC, and vX | The values that are substituted into the quadratic expression above. Function returns Null if any of the arguments vA, vB, vC, or vX are Null or cannot be fixed up to real or complex numbers (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part. |