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 false_position 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.2.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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scm203lab267112755-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a2d3d8cd0db2a49a38556f069bbbb0792ab988e78ab17a4fe40c0b656479bc07
MD5 6c04f0b351c480179fda98aa8b076625
BLAKE2b-256 d5fc22519a515a705384e4f52df5831188de51141a6a493fd2fcd447732c57e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scm203lab267112755-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d078311891bc8572a691c1fa0630e36062f70a9ab6a56feaefbb816e8e83b22
MD5 7d32c0da9a80c52e251492c7809997c6
BLAKE2b-256 f4e6e8e136f55d202bbf4e90d52c2e24135f8b9299ab0fd96a1dc66ff6cf9cc8

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