Project that evaluates mathematical expressions, including calls to the wolfram alpha api.
Project description
calculate_py_ay250
Project that evaluates mathematical expressions, including calls to the wolfram alpha api. Built for UC Berkeley's AY 250 python data science course.
Main function is calculate, which can be called in two ways. First, from the command line:
$ python CalCalc.py -w 'mass of the moon in kg'
7.3459e+22
AND, from within Python
>>> from CalCalc import calculate
>>> calculate('mass of the moon in kg', return_float=True) * 10
>>> 7.3459e+23
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file calculate_py_ay250-1.0.2.tar.gz
.
File metadata
- Download URL: calculate_py_ay250-1.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6a4c19a4e158511d1489464db7e7b6e8551fa5456a0dcba5f03aea97453e94 |
|
MD5 | 59367710b35d8199c8736977546dd90e |
|
BLAKE2b-256 | 531d326af62763e9b9264d0e3abc85582ffc44c4fbf91a4406deed58a1e5d9f1 |
File details
Details for the file calculate_py_ay250-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: calculate_py_ay250-1.0.2-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f524d292f1fd10a9c51d3fb0fa6a560c57240d0393f6d55d39739e668162745a |
|
MD5 | 59bdf1ac54d25bf902eadb296ff8ea32 |
|
BLAKE2b-256 | eb3de12b39dde1a1c75e3ca28b7fb97fac7cc694bebb6c6ab4562986418fe4a3 |