Table of Contents

mSolveCubic

(float a, float b, float c, float d)Solve a cubic equation of form a*x^3 + b*x^2 + c*x + d = 0.

@returns A 4-tuple, contanining: sol x0 x1 x2. sol is the number of solutions (being 0, 1, 2, or 3), and x0, x1, x2 are the solutions, if any. Unused x's are undefined.

Syntax

string mSolveCubic(float %a, float %b, float %c, float %d);

Parameters

float %a
No description available.

float %b
No description available.

float %c
No description available.

float %d
No description available.

Return value

string
No description available.

Remarks

Examples

Source

Engine

See also

atof
atoi
getMax
getMin
mAbs
mAcos
mAsin
mAtan
mCeil
mClamp
mClampF
mCos
mDegToRad
mFloatLength
mFloor
mLog
mPow
mRadToDeg
mSin
mSolveQuadratic
mSolveQuartic
mSqrt
mTan

References

This function is not called by any other functions.