https://github.com/mcbabo/webmath
Online Math API Wrapper
https://github.com/mcbabo/webmath
api math python wrapper
Last synced: about 2 months ago
JSON representation
Online Math API Wrapper
- Host: GitHub
- URL: https://github.com/mcbabo/webmath
- Owner: mcbabo
- License: mit
- Created: 2021-11-04T20:31:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T21:08:30.000Z (over 3 years ago)
- Last Synced: 2025-03-01T19:16:30.927Z (3 months ago)
- Topics: api, math, python, wrapper
- Language: Python
- Homepage: https://api.mathjs.org
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WEBMATH #
Online Math Calculator
Shoutout to [BobDotCom#4428](https://github.com/BobDotCom "Bob's Github") for his help
[My Discord](https://discordapp.com/users/731128007388823592/ "Moritz⚜#6969")
[Bob's Discord](https://discordapp.com/users/690420846774321221/ "BobDotCom#4428")
## Instructions ##
### Install: ###
```py
pip install web-math
```### Information: ###
```py
calculate() takes one required and one optional argument
calculate([TASK], [PRECISION])
TASK = str
PRECISION = int
```### Run Program: ###
```py
# import webmath and asyncio
import asyncio
from web_math import webmath# make def
async def bread():
output = await webmath.calculate("3+3*3-sqrt(pi)", 4)
print(output)# run def
asyncio.run(bread())
```### OUTPUT: ###
```py
# with 4 digit precision
10.23
# without digit precision
10.227546149094485
```## Ride the space skyway home to 80s Miami ##