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 details)

Uploaded Source

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

Hashes for mathlibs-0.3.tar.gz
Algorithm Hash digest
SHA256 b52f98e01b5b24bc8e41a894531d4aad6ba81449358e9cbf88b8cd0170a8b5a5
MD5 1c47df1e9d100bf1b8577fe5d1d06652
BLAKE2b-256 6a6ef4fecd824b260b3b4017b077cf36bbbdd86be0eaa54b0fa99d008c2d62be

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