This is package . A example package to find Roots of eqaution.
Project description
scm20367104703
scm20367104703is package to find Roots of eqaution
Features
- Fixed-Point Iteration: use a function
fixed_point()to use Fixed_point method - Secant Method: use a function
secant()to use Secant method - 2nd-order Runge-Kutta:
wating - 5nd-order Runge-Kutta :
wating
Installation
You can install the package directly from PyPI:
pip install scm20367104703
Example1
if __name__ == "__main__":
def g(x):
return (x**2 + 3) / 5
initial_guess = 0.5
root, iterations = fixed_point(g, initial_guess)
print(f"\nApproximate: {root}")
print(f"iterations: {iterations}")
Example2
if __name__ == "__main__":
def f(x):
return x**3 - x - 2
root, iterations = secant(f, 1, 2)
print(f"\nApproximate : {root}")
print(f"iterations: {iterations}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scm20367104703-0.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scm20367104703-0.1.0.tar.gz.
File metadata
- Download URL: scm20367104703-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a551b553821791592113a3e15d389a1eee8c89c5fa480980c03cda156deea80
|
|
| MD5 |
8316d5211580d40828aef1a06c6d2264
|
|
| BLAKE2b-256 |
1cf0648e3ebe54b058e04a85dff4e4d49fa2ab92d116caaae6b549e463848de2
|
File details
Details for the file scm20367104703-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scm20367104703-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71454a9191abf224ba211fc09eb62c2165f255c177a1a3b4d49a6944adad53b2
|
|
| MD5 |
9fe7e60ff5d25a889c3435639a8fb978
|
|
| BLAKE2b-256 |
0d0e301a023480c127fd780e50b1eac2e1e2eabf54fe7590e4619e108f44458f
|