Calculator for Calculus
npm install cp-advanced-calculatorx^2 + 2x).
2x).
2x - 10 = 0 for x).
npx, or you can install it globally using npm:
bash
npm install -g cp-advanced-calculator@latest
`
Usage
$3
The easiest way to use the calculator is with npx:
`bash
npx cp-advanced-calculator@latest
`
$3
If you installed the package globally, you can run it with this command:
`bash
cp-advanced-calculator
`
Once started, the calculator will prompt you to enter two numbers and select an operation to perform.
$3
- Differentiate:
- x^2 + 2x -> 2*x + 2
- Integrate:
- 2x -> x^2
- Solve:
- 2x - 10 = 0 -> [5]
Development
If you want to contribute to this project, you can clone the repository and install the dependencies:
`bash
git clone https://github.com/cr33p1ngp4ck3t/cp-simple-calculator.git
cd cp-simple-calculator
npm install
`
Testing
To run the unit tests, use the following command:
`bash
npm test
``