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.2.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymathalgos-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.2.0.tar.gz
Algorithm Hash digest
SHA256 a64a95e4a55d6ad2f98e38d8ac0285679e8b5986995f52f8659d24cb24dcf17f
MD5 ce7d49f08fa689397514439046ceb8e2
BLAKE2b-256 e65846dbb7aab39cac21ecd2a7e4c54151e8993c6010a6ff5cbacb72f6380157

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymathalgos-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99b409236fe6663c5e5efd78c12067e04ce42d3df309b60906f3a7e463990203
MD5 ac277bf6bdabfe428488ec58b36e7a27
BLAKE2b-256 c0042489029199fcbeaad58a78f17c9a81a671ff12227c70c2a378b6f583850c

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