MCPcopy Index your code
hub / github.com/cfgnunes/numerical-methods-python

github.com/cfgnunes/numerical-methods-python @1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.1 ↗ · + Follow
75 symbols 194 edges 10 files 66 documented · 88%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Numerical Methods in Python Actions Status

Numerical methods implementation in Python.

For the implementation in MATLAB, see this repository.

Getting Started

Prerequisites

Using Conda (recommended)

conda env create
conda activate numerical-methods

Using Pip

pip install -r requirements.txt

Using Ubuntu

This section assumes Ubuntu 18.04 (also tested on Ubuntu 22.04), but the procedure is similar for other Linux distributions.

sudo apt -y install python3-numpy

Running the examples

To run the main example, use:

python3 main.py

Implementations

Limits

  • Epsilon-delta method

Solutions of equations

  • Bisection method
  • Secant method
  • Regula Falsi method (False Position)
  • Pegasus method
  • Muller method
  • Newton method

Interpolation

  • Lagrange method
  • Newton method
  • Gregory-Newton method
  • Neville method

Algorithms for polynomials

  • Briot-Ruffini method
  • Newton's Divided-Difference method
  • Limits of the real roots

Numerical differentiation

  • Backward-difference method
  • Three-Point method
  • Five-Point method

Numerical integration

  • Composite Trapezoidal method
  • Composite 1/3 Simpson's method
  • Romberg method

Initial-value problems for ordinary differential equations

  • Euler's method
  • Taylor's (Order Two) method
  • Taylor's (Order Four) method
  • Runge-Kutta (Order Four) method

Systems of differential equations

  • Runge-Kutta (Order Four) method

Methods for Linear Systems

  • Gaussian Elimination
  • Backward Substitution
  • Forward Substitution

Iterative Methods for Linear Systems

  • Jacobi method
  • Gauss-Seidel method

Core symbols most depended-on inside this repo

f
called by 38
main.py
dy_end
called by 4
differentiation.py
dy_difference
called by 2
differentiation.py
dy_mid
called by 2
differentiation.py
df
called by 2
main.py
df1
called by 2
main.py
example_limit_epsilon_delta
called by 1
main.py
example_solution_bisection
called by 1
main.py

Shape

Function 75

Languages

Python100%

Modules by API surface

main.py40 symbols
solutions.py6 symbols
differentiation.py6 symbols
ode.py5 symbols
integration.py5 symbols
interpolation.py4 symbols
polynomials.py3 symbols
linear_systems.py3 symbols
linear_systems_iterative.py2 symbols
limits.py1 symbols

For agents

$ claude mcp add numerical-methods-python \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact