casio_991_solve
Solve algebraic polynomial equations: quadratic equations (ax^2 + bx + c = 0) and 2-variable simultaneous linear systems (a1x + b1y = c1, a2x + b2y = c2) with exact real and complex roots.
Behavior: Deterministic, idempotent calculation with zero external side effects. For quadratics: evaluates discriminant D = b^2 - 4ac; computes real roots or complex conjugates (x1, x2 = (-b ± isqrt(|D|)) / (2a)), and parabola vertex coordinates. For simultaneous systems: evaluates Cramer's determinant rule (D, Dx, Dy) to solve unique solutions or identify singular/parallel systems.
Usage Guidelines: Use when solving quadratic polynomials or 2-unknown linear systems. Do not use for statistical data fitting; use linear_regression instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First coefficient: quadratic coefficient a (for a*x^2, must be non-zero) or first linear equation x-coefficient a1. | |
| b | Yes | Second coefficient: linear coefficient b (for b*x) or first linear equation y-coefficient b1. | |
| c | Yes | Constant term: constant c (for + c = 0) or first linear equation constant c1 (a1*x + b1*y = c1). | |
| a2 | No | Second linear equation x-coefficient a2 (required when type is 'simultaneous2', a2*x + b2*y = c2). | |
| b2 | No | Second linear equation y-coefficient b2 (required when type is 'simultaneous2', a2*x + b2*y = c2). | |
| c2 | No | Second linear equation constant term c2 (required when type is 'simultaneous2', a2*x + b2*y = c2). | |
| type | No | Equation solver mode: 'quadratic' (solve single quadratic equation a*x^2 + b*x + c = 0) or 'simultaneous2' (solve system of 2 linear equations with 2 unknowns). | quadratic |