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
Release files for mathlibs 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mathlibs-0.3.tar.gz | 2.4 kB | Details |
Release files / mathlibs-0.3.tar.gz
| Download URL | mathlibs-0.3.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b52f98e01b5b24bc8e41a894531d4aad6ba81449358e9cbf88b8cd0170a8b5a5
|
|
BLAKE2b-256 checksum How to use checksums |
6a6ef4fecd824b260b3b4017b077cf36bbbdd86be0eaa54b0fa99d008c2d62be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|