A complete numerical analysis tool for roots, ODEs and interpolation
Project description
TareqNumerical
TareqNumerical is a dynamic Python library designed for mathematicians and engineers to solve numerical analysis problems efficiently. It supports dynamic equation parsing, allowing users to input mathematical functions as strings.
Features
- Dynamic Root Solver: Solve non-linear equations using Bisection, Newton-Raphson, and Secant methods.
- Dynamic ODE Solver: Solve Ordinary Differential Equations using Euler and Runge-Kutta (RK4) methods.
- Interpolation & Curve Fitting: Compare Lagrange Interpolation with Polynomial Curve Fitting.
- Visual Comparison: Built-in plotting to compare convergence and accuracy of different methods.
Installation
Once published, you can install it via pip:
pip install TareqNumerical
Quick Start
1. Finding Roots
from TareqNumerical import RootFinder
solver = RootFinder("x**3 - x - 2")
root = solver.solve_newton(x0=1.5)
print(f"Newton Root: {root}")
solver.plot_comparison()
2. Solving ODEs
from TareqNumerical import ODESolver
ode = ODESolver("x + y")
xs, ys = ode.solve_rk4(x0=0, y0=1, h=0.1, n=10)
ode.plot()
3. Curve Fitting
from TareqNumerical import CurveAnalyzer
x_data = [0, 1, 2, 3]
y_data = [1, 3, 2, 5]
analyzer = CurveAnalyzer(x_data, y_data)
lag_val, fit_val = analyzer.compare_and_plot(xp=1.5, degree=2)
Requirements
- NumPy
- MatPlotLib
- SymPy
Author
Md Asaduzzaman Tareq
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tareqnumerical-1.0.0.tar.gz.
File metadata
- Download URL: tareqnumerical-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6276a94fbfd0804830ae8d5732bbb03711996f1f30dcc22fd5a53a6c2cfef73d
|
|
| MD5 |
85e59c80aae27d031fcc3b1c7c397e01
|
|
| BLAKE2b-256 |
356bd64cfeb395a8f53207a98d0fc34bf4b981601cd2be927f8cbe49eeb597b9
|
File details
Details for the file tareqnumerical-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tareqnumerical-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccdc7c3623c4d7a5830a0c8ea7bbe32521019529f47a6aeed9d2c0f7e2131158
|
|
| MD5 |
157d4dfb9507e13d7d0a9c33060461fc
|
|
| BLAKE2b-256 |
1ea26eb16fe0dd598e1d9701fc1dddb4a2c534186cdcf456c54f89435b420102
|