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.คุณสามารถค้นหาตัวอย่างเพิ่มเติมในเอกสาร
template readme.rst นำมาจาก discord.py readme.rst