How ben-dickinson01/ode-solvers-ts works
This is a small TypeScript numerical library for solving ordinary differential equations. Its main workflow is to provide a derivative function and initial state to an Euler or RK4 solver, which advances the state through a shared integration loop and returns times and states. Vector operations support the step formulas. Newton–Raphson and bisection are standalone root-finding capabilities intended for possible implicit methods; the README says they are not wired into a solver. The demo exercises the solvers and vector helpers. Edges reflect the excerpts and README; no tests or tooling are mapped.
Main entry points: solvers.ts Integration loop · demo.ts Demo examples · vector-methods.ts Vector operations
Components 7
ODE solving
- Integration loop
src/solvers.ts - Euler and RK4
src/solvers.ts - Times and states
src/solvers.ts
Numerical helpers
- Vector operations
src/vector-methods.ts
Root finding
- Root finders
src/rootfinders.ts
Example
- Demo examples
src/demo.ts
Other components
- Library user
Connections 6
- Library user → Demo examples: runs
README.md - Demo examples → Integration loop: uses solvers
src/demo.ts - Demo examples → Vector operations: uses helpers
src/demo.ts - Integration loop → Euler and RK4: calls each step
src/solvers.ts - Euler and RK4 → Vector operations: uses operations
src/solvers.ts - Integration loop → Times and states: returns
src/solvers.ts