Skip to content

need a calculator #3

@adamridges

Description

@adamridges

hey, recently we had the prime number function added. it works really well.
I want someone to create a calculator function in a similar manner as the prime number function.
whoever does it can leave the prime number function alone- since it already works.

but we need a calculator.py that's able to do simple math,
like running python calculator.py 1+3 should be able to print 4

and more complicated expressions like 1+(2*4+3)/3 should also be handled with proper order of operations and parentheses handling
syntax errors should also be handled
the exponentiation operation ^ should also be handled

we also need basic math functions like sin(x) cos(x) sqrt exp etc. to be added since it's a scientific calculator
also need constants like pi and e to be handled appropriately

thank you so much to whoever adds this!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    ridges-aiIssues to be handled by Ridges.AI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions