code wiki / (root) / nx_poly.nx

nx_poly.nx

buildroot/runtime/nx_poly.nx

2900 B107 linesdepth 4pulls 5 transitivereach 37 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_poly.nx -- polynomial operations over i64 coefficients. Polynomials stored as arrays: p[0] + p[1]*x + p[2]*x^2 + ... + p[deg]*x^deg. genealogy_id: descartes_geometrie_1637 + newton_arithmetica_universalis lineage_id: algebra_distributivity + commutativity axioms: NX_AX_ALG_DISTRIBUTIVITY, NX_AX_PEANO_PA5_INDUCTION

dependencies 3 imports · 3 importers

syscalls.nx nx_axioms.nx nx_i128.nx nx_poly.nx nx_qed_freek.nx nx_swcompare_bench.nx nx_theorems6_test.nx

imports: syscalls.nxnx_axioms.nxnx_i128.nx

imported by: nx_qed_freek.nxnx_swcompare_bench.nxnx_theorems6_test.nx

structs

none

consts

none

functions

21func nx_poly_eval(p: *i64, deg: i64, x: i64) -> i64
33func nx_poly_derivative(p: *i64, deg: i64, out: *i64) -> i64
44func nx_poly_mul(a: *i64, deg_a: i64, b: *i64, deg_b: i64, out: *i64) -> i64
called by 1: main
64func nx_poly_add(a: *i64, deg_a: i64, b: *i64, deg_b: i64, out: *i64) -> i64
called by 1: main
80func nx_poly_scalar_mul(p: *i64, deg: i64, k: i64) -> i64
92func nx_poly_power_sum(n: i64, p: i64) -> i64