Numeric methods is a package of tools for analyze functions via numeric methods
Project description
Numeric methods
Numeric methods is a package of tools for analyze functions via numeric methods
Features
For now this project supports these features:
- One variable methods in
one_variable
module:half_method
: half division method for equation root searching
Installation
For installing this package you can use pip
:
py -m pip install numeric-methods
Changing language
This project supports several languages. You can also add yours. For now supports English and Russian. You can set language by using settings.set_language
:
from numeric_methods import settings
settings.set_language("en" or "EN" or "english" or "ENGLISH")
# ^^^ Returns True
Please note that the default language is English and errors have no translation.
Example of using
Half method
from numeric_methods.one_variable import half_method
for line in half_method(lambda x: x ** 5 - 2, 1, 2, 0.001):
print(line)
# Prints vvv
#
# (1, 1.0, 2.0, 1.5, 5.59375)
# (2, 1.0, 1.5, 1.25, 1.0517578125)
# (3, 1.0, 1.25, 1.125, -0.197967529296875)
# (4, 1.125, 1.25, 1.1875, 0.3613920211791992)
# (5, 1.125, 1.1875, 1.15625, 0.06661096215248108)
# (6, 1.125, 1.15625, 1.140625, -0.06930162664502859)
# (7, 1.140625, 1.15625, 1.1484375, -0.002269843505928293)
# 1.1484375
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
numeric-methods-1.0.0.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for numeric_methods-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f34f330bac2323b5931eca5432f9089321f146ccc7daa34535a0117ca4a5dfbe |
|
MD5 | b106158b7fb23bd5dcb00c04c2981aee |
|
BLAKE2b-256 | 2c96dc121854985e7e17af5c46258e9d5ff7a6abe3c65f4f32fb1fff235a2f69 |