omni_quadratic_formula
Calculate real and complex roots, discriminant, and parabola vertex for ax² + bx + c = 0 to eliminate LLM arithmetic errors with deterministic floating-point precision.
Instructions
Quadratic Formula & Parabola Vertex Calculator. Calculate real and complex roots, discriminant (Δ = b² - 4ac), and vertex coordinates of any quadratic equation ax² + bx + c = 0. Discipline: CALCULUS. Governing mathematical model / formula: Roots x = [-b ± √(b² - 4ac)] / (2a) | Discriminant Δ = b² - 4ac.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of root_x1 (Root x₁), root_x2 (Root x₂), discriminant_val (Discriminant (Δ = b² - 4ac)), parabola_vertex (Parabola Vertex (h, k)) using coeff_a (Quadratic Coefficient (a)), coeff_b (Linear Coefficient (b)), coeff_c (Constant Term (c)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Quadratic Formula & Parabola Vertex Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "quadratic-formula"
category (string): "calculus"
name (string): "Quadratic Formula & Parabola Vertex Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.root_x1 (Root x₁): Formatted display string (e.g. 'x₁ = 3.0000')
metrics.root_x2 (Root x₂): Formatted display string (e.g. 'x₂ = -1.0000')
metrics.discriminant_val (Discriminant (Δ = b² - 4ac)): Formatted display string (e.g. 'Δ = 64.0000 (Two Real Roots)')
metrics.parabola_vertex (Parabola Vertex (h, k)): Formatted display string (e.g. '(1.0000, -8.0000)')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_quadratic_formula"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coeff_a | No | Quadratic Coefficient (a). Must be non-zero (a ≠ 0). Default: 2. Min: -1000. Max: 1000. | |
| coeff_b | No | Linear Coefficient (b). Coefficient of x. Default: -4. Min: -1000. Max: 1000. | |
| coeff_c | No | Constant Term (c). y-intercept constant. Default: -6. Min: -1000. Max: 1000. |