nx_calc_solve.nx
buildroot/runtime/nx_calc_solve.nx
about
nx_calc_solve.nx -- symbolic Solve for linear and quadratic.
Per the comparison commit's Mathematica LOSE_BIG: ship Solve.
First cut: linear (a*x + b = 0) and quadratic (a*x^2 + b*x + c = 0).
General polynomial Solve up to degree 4 + numerical Newton iter
for higher are named follow-ups.
dependencies 1 imports · 1 importers
imports: nx_calc.nx
imported by: nx_calc_advanced_test.nx
structs
| 19 | struct SolveResult |
consts
| 25 | const NX_SOLVE_BYTES: nx_int = 32 |
| 27 | const NX_SOLVE_LINEAR_ONE: nx_int = 1 |
| 28 | const NX_SOLVE_QUADRATIC_TWO: nx_int = 2 |
| 29 | const NX_SOLVE_NO_REAL: nx_int = 3 |
| 30 | const NX_SOLVE_DEGENERATE: nx_int = 4 |
| 31 | const NX_SOLVE_UNSUPPORTED: nx_int = 5 |
functions
| 33 | func nx_solve_result_new() -> *SolveResult |
| 45 | func nx_calc_solve_linear(a: *Term, b: *Term) -> *SolveResult |
| 62 | func nx_calc_solve_quadratic(a: *Term, b: *Term, c: *Term) -> *SolveResult |