Resolver ecuación cuadrática
quadratic-solveResuelve ax² + bx + c = 0 con raíces reales o complejas, discriminante y vértice. Cuándo: un resultado numérico tiene que ser exacto o reproducible y no estimado. No para: resolver un sistema de ecuaciones lineales Ax = b (linear-system-solve). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Solves ax² + bx + c = 0, returning real or complex roots, the discriminant and the vertex. When: a numeric result has to be exact or reproducible instead of estimated. Not for: solving a square system of linear equations Ax = b (linear-system-solve). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | a (≠ 0) (number; required). | |
| b | Yes | b (number; required). | |
| c | Yes | c (number; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roots | No | ||
| vertex | No | ||
| discriminant | No |