Solve Quadratic
CallableSolveQuadraticSolves 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
| Name | Type | Default | Description |
|---|---|---|---|
| A | float | — | A parameter |
| B | float | — | B parameter |
| C | float | — | C parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | int32 | ReturnValue output |
| Root1 | float | Root1 output |
| Root2 | float | Root2 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.