Skip to main content

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

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.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

numeric_methods-1.0.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file numeric-methods-1.0.1.tar.gz.

File metadata

  • Download URL: numeric-methods-1.0.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for numeric-methods-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ed9f8cb8441a4476ff50ea9d6df9d5eb0861703cf550b9ec08d9d54ec48abc47
MD5 d2a153e2a7ab7baa71fb58b00dc9a8b6
BLAKE2b-256 0a19b95b75bc95cf798e3a924f3d3d6459fbeb1d00d02865f26093254ba2fb62

See more details on using hashes here.

File details

Details for the file numeric_methods-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for numeric_methods-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d28611497ef43466cd254f52c616cbb6c3eb1791f25e6aaeb3611163c49c3bb6
MD5 49b61a63f07c2b5ee1b3b44e832217c4
BLAKE2b-256 467487348e733dadd773bb3606bfef38bd05a35f55ffea5bede7e1033a1788f4

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 Sentry Error logging StatusPage Status page