math theorem
Project description
mathlibs- Mathematical library, created for theorems
Installation
The easiest way to install Mathlibs is pip
pip install mathlibs
And it remains only to wait until the installation is finished. Version 0.3
Usage
Initialization
Mathlibs.init(Language)
INITIALIZATION IS REQUIRED! OTHERWISE, SOME FUNCTIONS MAY NOT WORK! Language can take two values: ru and en. Ru – Russian, en – English Example:
import mathlibsMathlibs.init(ru)Output:
Pythagoras
Mathlibs.Pyth(cathetusX, cathetusY, Hypotenuse)
cathetusX, cathetusY, Hypotenuse – provide numbers, if one number is 0, then this number is unknown to us. The formula of the Pythagorean theorem: c² = a² + b²
Example:
import mathlibsa = Mathlibs.Pyth(3, 3, 0)print(a)Output: 18
Euler
Mathlibs.euler(e)
For the Euler formula, initialization is required, otherwise it will not work e – provides a number
Example:
import mathlibsa = Mathlibs.euler(30)print(a)Output: 8
Discriminant
Mathlibs.Discr(a,b,c)
Initialization is required for the discriminant, otherwise it will not work a, b, c – provide numbers Discriminant formula: ax² + bx + c = 0
Example:
import mathlibsa = Mathlibs.Discr(2,4,2)print(a)Output: -1.00
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
File details
Details for the file mathlibs-0.3.tar.gz.
File metadata
- Download URL: mathlibs-0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b52f98e01b5b24bc8e41a894531d4aad6ba81449358e9cbf88b8cd0170a8b5a5
|
|
| MD5 |
1c47df1e9d100bf1b8577fe5d1d06652
|
|
| BLAKE2b-256 |
6a6ef4fecd824b260b3b4017b077cf36bbbdd86be0eaa54b0fa99d008c2d62be
|