A feature-rich command-line math calculator for quick calculations with advanced mathematical functions.
npm install
npm start
Enter math expressions like:
2 + 3
5 * 8
10 / 2
(5 + 3) * 2
- Square root:
sqrt(16)
→ 4 - Factorial:
factorial(5)
→ 120 - Trigonometry:
sin(PI/2)
,cos(0)
,tan(PI/4)
- Logarithms:
log(E)
,log10(100)
- Power:
2**3
or use built-inpow(2,3)
PI
- Mathematical constant πE
- Euler's number
history
- View recent calculationsclear
- Clear calculation historyexit
- Quit the application
- ✅ Basic arithmetic operations (+, -, *, /)
- ✅ Advanced mathematical functions
- ✅ Input validation and security
- ✅ Calculation history with persistence
- ✅ Interactive command line interface
- ✅ Comprehensive error handling
- ✅ Unit tests included
npm test
MIT