https://github.com/v3ssel/calculationlib
Calculation library, can calculate expressions from entered string
https://github.com/v3ssel/calculationlib
calculator library
Last synced: about 1 year ago
JSON representation
Calculation library, can calculate expressions from entered string
- Host: GitHub
- URL: https://github.com/v3ssel/calculationlib
- Owner: v3ssel
- Created: 2024-03-09T22:37:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T13:20:28.000Z (over 2 years ago)
- Last Synced: 2025-03-02T23:17:22.945Z (over 1 year ago)
- Topics: calculator, library
- Language: C++
- Homepage:
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculation Library
### C++ Expression Calculation Library can calculate entered string expression or range with X value substitution.
### Implemented on shunting yard algorithm.
### Used design patterns: Template Method, Chain of Responsibility, Singleton
### Created according to SOLID principes.
## Supported operators and functions
* (a + b)
* a + b
* a - b
* a * b
* a / b
* a ^ b
* a mod b
* +a
* -a
* cos(x)
* sin(x)
* tan(x)
* acos(x)
* asin(x)
* atan(x)
* sqrt(x)
* ln(x)
* log(x)
* x substitution
## Extensions
### There are two extensions - Credit Library and Deposit Library.
### Credit Library can calculate monthly payments for your credit.
### Deposit Library can calculate income from your deposit.
## How to build
```
git clone https://github.com/v3ssel/CalculationLib
cd CalculationLib
make libs
```