Resolver sistema lineal
linear-system-solveResuelve un sistema de ecuaciones lineales Ax = b (hasta 20 incógnitas). Cuándo: un resultado numérico tiene que ser exacto o reproducible y no estimado. No para: resolver ax² + bx + c = 0 con raíces reales o complejas, discriminante y vértice (quadratic-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 a square system of linear equations Ax = b (up to 20 unknowns) by Gauss-Jordan elimination with partial pivoting. When: a numeric result has to be exact or reproducible instead of estimated. Not for: solving ax² + bx + c = 0, returning real or complex roots, the discriminant and the vertex (quadratic-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 | Matrix as array of rows (array of array; required; at least 1 items; up to 20 items). | |
| b | Yes | Right-hand side (array of number; required; at least 1 items; up to 20 items). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No |