code wiki / (root) / nx_calc_solve.nx

nx_calc_solve.nx

buildroot/runtime/nx_calc_solve.nx

3357 B84 linesdepth 7pulls 7 transitivereach 1 importersview sourcekind librarytopic calc
docsdependenciesstructsconstsfunctions

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

nx_calc.nx nx_calc_solve.nx nx_calc_advanced_test.nx

imports: nx_calc.nx

imported by: nx_calc_advanced_test.nx

structs

19struct SolveResult

consts

25const NX_SOLVE_BYTES: nx_int = 32
27const NX_SOLVE_LINEAR_ONE: nx_int = 1
28const NX_SOLVE_QUADRATIC_TWO: nx_int = 2
29const NX_SOLVE_NO_REAL: nx_int = 3
30const NX_SOLVE_DEGENERATE: nx_int = 4
31const NX_SOLVE_UNSUPPORTED: nx_int = 5

functions

33func nx_solve_result_new() -> *SolveResult
45func nx_calc_solve_linear(a: *Term, b: *Term) -> *SolveResult
62func nx_calc_solve_quadratic(a: *Term, b: *Term, c: *Term) -> *SolveResult