Solve Quadratic

Callable
SolveQuadratic

Solves Ax² + Bx + C = 0. Returns the number of real roots (0, 1, or 2) and the root values.

Type: Callable (has execution pins)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
AfloatA parameter
BfloatB parameter
CfloatC parameter

Outputs

NameTypeDescription
ReturnValueint32ReturnValue output
Root1floatRoot1 output
Root2floatRoot2 output

Example Use Cases

Example 1

Find the exact time a projectile crosses a height threshold.

Example 2

Compute precise collision timing for physics predictions.