🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

web-math

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-math

Online Math Api Wrapper

1.2.0
94

Supply Chain Security

100

Vulnerability

98

Quality

100

Maintenance

100

License

Maintainers
1

WEBMATH

Online Math Calculator

Shoutout to BobDotCom#4428 for his help

My Discord

Bob's Discord

Instructions

Install:

pip install web-math

Information:

calculate() takes one required and one optional argument
calculate([TASK], [PRECISION])
TASK = str
PRECISION = int

Run Program:

# 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:

# with 4 digit precision
10.23
# without digit precision
10.227546149094485

Ride the space skyway home to 80s Miami

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts