Skip to main content

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

Metadata

Release files for pymathalgos 0.0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymathalgos 0.0.2.0
File Size Uploaded
pymathalgos-0.0.2.0.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymathalgos 0.0.2.0
File Interpreter ABI Platform
pymathalgos-0.0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.0 kB

Release files / pymathalgos-0.0.2.0.tar.gz

Download URL pymathalgos-0.0.2.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4633310ab38a205287b30fd1a77b5294321b349a7244c638fdefd58a750776ee
BLAKE2b-256 checksum
How to use checksums
4ed0006a85595c87b90090da9b4242b1f810b521500ab4c7e9849d34b91410fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Windows/10

Release files / pymathalgos-0.0.2.0-py3-none-any.whl

Download URL pymathalgos-0.0.2.0-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48c85c414d3e71a345df41fa698c6f3b24e0050160813aba806c8d47ebf4aa5e
BLAKE2b-256 checksum
How to use checksums
7b971802c226e3b1bd1ffd42b3715852faa11a9f7c6d1427e8345589ea0fb85d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Windows/10

Release history Release notifications | RSS feed

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

This release

0.0.2.0 This release

2 release files

0

2 release files

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