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": f = lambda x: ... root_secant = secant(f, x0, x1) print(f"\nRoot (Secant): {root_secant:.6f}") root_false_pos = false_position(f, a, b) print(f"\nRoot (False Position): {root_false_pos:.6f}")

if name == "main": 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.0.tar.gz (3.2 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.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scm203lab267112755-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 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.0.tar.gz
Algorithm Hash digest
SHA256 68ee09e1b86dc137b9a71b4859ad79bbdee9c09e69bac4a2f2f282d478d83577
MD5 6d721a706cb50f704dff266fce8838c7
BLAKE2b-256 1a3572028bc52d2566d3fe7ff9d163be157894814502f2798d1f6c8b4b3eff8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scm203lab267112755-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2470ea1e2f2037b7cbe98b63aeaf5e0c7a52a96b52b7825c4140bc5989c9995f
MD5 98158bef9a33e8382815538b03efa7e3
BLAKE2b-256 16f58c0347018f2925f479f43d6fed426ef5205257acec5a8b6c08a0cb715803

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