Skip to main content

No project description provided

Project description

PyMathAlgoS

1. Установка

$ pip install pymathalgos

2. Функционал

Простая арифметика

Функция вычисления факториала:

import pymathalgos
print(pymathalgos.factorial(2))	 # 1
print(pymathalgos.factorial(-1)) # ArithmeticError: argument value must be bigger then zero!

Функции для вычисления большего, меньшего числа из аргументов, а также суммы аргументов:

import pymathalgos

print(pymathalgos._min(2, 8, 1)) # 1
print(pymathalgos._max(2, 8, 9)) # 9
print(pymathalgos._sum(1, 2, 3)) # 6

Геометрия

Здесь вы можете увидеть готовые функции для геометрии

Здесь просто функции из тригонометрии:

import pymathalgos
import pymathalgos.geometry as geometry

print(geometry.sin())
print(geometry.cos())

# Функции tan() и tg(), а также подобные функции означают одно и тоже 
print(geometry.tan())
print(geometry.tg())

print(geometry.asin())
print(geometry.acos())
print(geometry.atan())

print(geometry.sinh())
print(geometry.cosh())
print(geometry.tanh())

print(geometry.asinh())
print(geometry.acosh())
print(geometry.atanh())

Если вы хотите узнать синус от градусов, а не от радиан есть простая функция sin_d(degrees).

import pymathalgos
# Эти две строки кода означают одно и тоже
print(pymathalgos.sin_r(pymathalgos.to_radians(90)))
print(pymathalgos.sin_d(90))

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

pymathalgos-0.0.2.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

pymathalgos-0.0.2.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file pymathalgos-0.0.2.0.tar.gz.

File metadata

  • Download URL: pymathalgos-0.0.2.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Windows/10

File hashes

Hashes for pymathalgos-0.0.2.0.tar.gz
Algorithm Hash digest
SHA256 4633310ab38a205287b30fd1a77b5294321b349a7244c638fdefd58a750776ee
MD5 17a7e4721c353579524e01bd96923d66
BLAKE2b-256 4ed0006a85595c87b90090da9b4242b1f810b521500ab4c7e9849d34b91410fb

See more details on using hashes here.

File details

Details for the file pymathalgos-0.0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pymathalgos-0.0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Windows/10

File hashes

Hashes for pymathalgos-0.0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48c85c414d3e71a345df41fa698c6f3b24e0050160813aba806c8d47ebf4aa5e
MD5 2d6c9b2802ce61b3578b111a5b151794
BLAKE2b-256 7b971802c226e3b1bd1ffd42b3715852faa11a9f7c6d1427e8345589ea0fb85d

See more details on using hashes here.

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