ScriptEvent:solveRoots

From Mod Wiki
Revision as of 18:14, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters

float a -- The value of a.
float b -- The value of b.
float c -- The value of c.

Result

integer

Supported By

sdSysCallThread

Functionality

Calculates the roots of the quadratic aX^2 + bX + c, and returns the number of roots found. The values of these roots can then be looked up using getRoot.