mathemagic
1.0.0
Python으로 작성된 많은 일반적이고 일반적으로 사용되는 수학적 기능을 포함하는 모듈.
Python 3.x가 권장되지만 Python2.x에 설치할 수도 있습니다.
모듈을 설치하려면 다음 명령 만 실행할 수 있습니다.
# Linux/macOS (Replace python3 with python to install for python2.x)
python3 -m pip install -U mathemagic
# Windows
pip install -U mathemagic개발 버전을 설치하려면 다음을 수행하십시오.
$ git clone https://github.com/FireHead90544/mathemagic
$ cd mathemagic
$ python3 -m pip install -U . import mathemagic
mathemagic . pi ( 4 ) # Returns 3.1415, the value of pi till 4 digits after decimal.
mathemagic . even ( 140 ) # Returns True, as 140 is an even number.
mathemagic . calculate ( "100 + 200 - 150" ) # Returns 150, tries calculating the expression given.
mathemagic . factorial ( 5 ) # Returns 120 as 5! = 120, returns the factorial of a given number.
mathemagic . prime ( 20 ) # Returns False, as 20 is not a prime number, returns True/False based upon the number is prime or not.문서에서 더 많은 예제를 찾을 수 있습니다.
Readme.rst 템플릿 Discord.py의 readme.rst에서 가져온 템플릿