Skip to content

Datachar/calculator

Repository files navigation

calculator

Task description

Write a simple scientific calculator app with the following features:

the calculator supports addition, subtraction, multiplication, division, log on floating point numbers the calculator can solve simple linear equations with a single variable (namely, x), for simplicity, only addition and multiplication operations are allowed the calculator supports parentheses in both modes the calculator should have a language parser do not use any library that can accomplish any of the listed requirements the calculator should not crash, and should work for any valid input Examples:

input: (3+(4-1))*5 output: 30

input: 2 * x + 0.5 = 1 output: x = 0.25

test1

Releases

No releases published

Packages

No packages published

Languages