Skip to main content
## Start

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 mathlibs Mathlibs.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 mathlibs a = 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 mathlibs a = 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 mathlibs a = 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)

Source distribution for mathlibs 0.3
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

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page