Skip to main content

Numerical methods: root finding and ODE solvers (Secant, False Position, Runge-Kutta).

Project description

mypackage

scm203lab267112755 is a lightweight Python package that provides numerical methods for solving roots of equations and initial value problems (ODEs). It is designed mainly for learning purposes and as an example of Python packaging.


Features

  • lab2mod167112755.py: Secant method, False Position method
  • lab2mod267112755.py: 2nd-order Runge-Kutta (Heun), 3rd-order Runge-Kutta

Installation

You can install the package directly from PyPI:


Example

if name == "main": #input example for secant method f = lambda x: ... root_secant = secant(f, x0, x1) print(f"\nRoot (Secant): {root_secant:.6f}")

#input example for secant method
root_false_pos = false_position(f, a, b)
print(f"\nRoot (False Position): {root_false_pos:.6f}")

##input example for 
f = lambda t, y:...
# Runge-Kutta 2nd order
runge_kutta2(f, t0, y0, h, n)
# Runge-Kutta 3rd order
runge_kutta3(f, t0, y0, h, n)
pip install scm203lab267112755

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

scm203lab267112755-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

scm203lab267112755-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file scm203lab267112755-0.1.1.tar.gz.

File metadata

  • Download URL: scm203lab267112755-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for scm203lab267112755-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e162af923c38e48ae60c1bc6e2d145e4129fc0ad4050153517cd7cbb0ca99e9
MD5 4794e5da16af3e561198e42ffc01b2ef
BLAKE2b-256 225ddf52e9c7fb3f1dd00110160f6a3a9df7c40376a5bae8f50ad7bb4d098910

See more details on using hashes here.

File details

Details for the file scm203lab267112755-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scm203lab267112755-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc7e2a56427c5c5bea9f789dbd5b27cfa87e2ef418d451a6638a588485dca685
MD5 2c6fe0f1a041f9f40f56bdb8235cfa0b
BLAKE2b-256 f3ec0b6ce8fdfd41f4f70699ffd545ef3a932096b4d848cd39ab08139cf04120

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