Skip to main content

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

Metadata

Release files for TareqNumerical 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TareqNumerical 1.0.2
File Size Uploaded Provenance Actions
tareqnumerical-1.0.2.tar.gz 5.3 kB Without provenance Details for tareqnumerical-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TareqNumerical 1.0.2
File Interpreter ABI Platform Actions
tareqnumerical-1.0.2-py3-none-any.whl Python 3 none any Details for tareqnumerical-1.0.2-py3-none-any.whl

Total release size: 11.8 kB

Release files / tareqnumerical-1.0.2.tar.gz

Download URL tareqnumerical-1.0.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c499b84b5cc31c794da7402f3ac027f376a96d9aa2dbbbe39b4e30908efdd3fa
BLAKE2b-256 checksum
How to use checksums
0b1f09f7b69fe64abc18857ce3676f1394269ac3b66140ed3c0b63914b35038c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / tareqnumerical-1.0.2-py3-none-any.whl

Download URL tareqnumerical-1.0.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef5740a8676b3942f9b47ff292ac10bc59cae23d5595d5409c68e5f1676ab5c3
BLAKE2b-256 checksum
How to use checksums
d4afec054ae873ee0255f3e1eade4abbb92a1123b8821ce39c895c8a81414cee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for TareqNumerical 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page