Skip to main content

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.
  • Detailed Comparison Tables: Compare methods instantly with automatic metrics like Initial Guess/Interval, Iteration count, Execution time, Final Error, and Convergence Status.
  • 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

You can install the library via pip:

pip install TareqNumerical

Quick Start

1. Finding Roots & Method Comparison

from TareqNumerical import RootFinder

# 1. Initialize with your dynamic non-linear equation
solver = RootFinder("x**3 - x - 2")

# 2. Run different root-finding methods
solver.solve_bisection(a=1, b=2)
solver.solve_newton(x0=1.5)
solver.solve_secant(x0=1.5, x1=2.0)

# 3. Print the comprehensive comparison table (with Initial Guess & Status)
solver.show_comparison_table()

# 4. Plot the error convergence graph
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tareqnumerical-1.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tareqnumerical-1.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file tareqnumerical-1.0.1.tar.gz.

File metadata

  • Download URL: tareqnumerical-1.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for tareqnumerical-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4442e431ce199facac50f2c9988506722c5046b3976fa6bbea8d0a2965699f18
MD5 c861cf32ea654e50583c2d1b19d55a42
BLAKE2b-256 2732c44228bd442c220cb334e3b5d0c27de855ae5820d17b6d09dbe4b445f44e

See more details on using hashes here.

File details

Details for the file tareqnumerical-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tareqnumerical-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for tareqnumerical-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe0ae1b731ec1b626f8bb25e5a8df2d97c0da91e278181a0566c46eb0a17e94d
MD5 b1ba0a14574dba3c419e3064dcd69356
BLAKE2b-256 f58e5e9c2dffb9f04674abbc390e6b9afa48b423dfab9a4869246d42a98ceda6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page