VEX Dictionary / solvecubic
solvecubic
Solves a cubic equation for its roots, writing up to three real or complex roots to output arguments.
group: mathmathsolve
Available in every context
Usage
int solvecubic(float a, float b, float c, float d, float &t1, float &t2, float &t3)
int solvecubic(float a, float b, float c, float d, vector2 &t1, vector2 &t2, vector2 &t3)
Examples
No worked examples yet.
Signatures (from vcc -X)
int solvecubic(float, float, float, float, float &, float &, float &)all contextsint solvecubic(float, float, float, float, vector2 &, vector2 &, vector2 &)all contexts