https://github.com/melkassib/calculator
:camel: A simple calculator that evaluates a mathematical expression and shows the step by step solutions.
https://github.com/melkassib/calculator
c calculator evaluate-expressions parse-trees
Last synced: 2 months ago
JSON representation
:camel: A simple calculator that evaluates a mathematical expression and shows the step by step solutions.
- Host: GitHub
- URL: https://github.com/melkassib/calculator
- Owner: melkassib
- License: mit
- Created: 2017-11-02T18:41:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T18:43:41.000Z (over 7 years ago)
- Last Synced: 2025-02-23T21:07:34.550Z (3 months ago)
- Topics: c, calculator, evaluate-expressions, parse-trees
- Language: C
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calculator
A simple calculator that evaluates a mathematical expression and shows the
step by step solutions.## EXAMPLE
For example to evaluate the expression: `tan(max(sin(5.12 * .6), -3.34 + 6 / 4 * 10))`Note: You can use any type of numbers - **integers** (like 3 10 -40) or **reals** (like 23.45 .12 78e+23 12.34E56) -

## SUPPORTED OPERATORS AND FUNCTIONS
**Mathematic operators**:
* `+` (addition), `-` (subtraction), `*` (multiplication),
* `/` (division), `^` (exponentiation), `%` (modulo)**Numeric functions**:
* `min` - The smallest of two numbers
* `max` - The largest of two numbers**Mathematic functions**:
* `sin` (sine), `cos` (cosine), `tan` (tangent)
* `sqrt` (square root), `abs` (absolute value), `ln` (natual logarithm)## LICENSE
MIT © 2017 Mohcine EL KASSIB