Simstim

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)

Related

Full SideFX documentation ↗