Skip to main content

math theorem

Project description

## 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mathlibs-0.3.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page