code wiki / (root) / nx_calc_series.nx

nx_calc_series.nx

buildroot/runtime/nx_calc_series.nx

3179 B83 linesdepth 7pulls 7 transitivereach 1 importersview sourcekind librarytopic calc
docsdependenciesstructsconstsfunctions

about

nx_calc_series.nx -- Taylor / Maclaurin series expansion engine. Per the comparison commit's named LOSE_BIG vs Mathematica: "ship symbolic Integrate + Series + Solve". Integrate shipped last commit; this commit ships Series. Taylor series of f(x) about center 0 up to degree N: f(x) ~ f(0) + f'(0)*x + f''(0)*x^2/2! + ... + f^(n)(0) * x^n / n! We build the symbolic series as a Term using nx_calc_deriv n times to get each f^(k). At evaluation time the user can plug numeric values; this engine returns the SYMBOLIC polynomial form. "About center 0" = Maclaurin. General Taylor about center c is the same algorithm with substitution (x - c) for x; named follow-up.

dependencies 1 imports · 1 importers

nx_calc.nx nx_calc_series.nx nx_calc_advanced_test.nx

imports: nx_calc.nx

imported by: nx_calc_advanced_test.nx

structs

none

consts

none

functions

26func nx_factorial(n: nx_int) -> nx_int
39func nx_calc_subst_zero(t: *Term, var_id: nx_int) -> *Term
64func nx_calc_maclaurin(f: *Term, var_id: nx_int, max_degree: nx_int) -> *Term