Skip to content

DariusETH/QuickMathSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickMathSolver

A feature-rich command-line math calculator for quick calculations with advanced mathematical functions.

Installation

npm install

Usage

npm start

Basic Operations

Enter math expressions like:

  • 2 + 3
  • 5 * 8
  • 10 / 2
  • (5 + 3) * 2

Advanced Functions

  • 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-in pow(2,3)

Constants

  • PI - Mathematical constant π
  • E - Euler's number

Commands

  • history - View recent calculations
  • clear - Clear calculation history
  • exit - Quit the application

Features

  • ✅ Basic arithmetic operations (+, -, *, /)
  • ✅ Advanced mathematical functions
  • ✅ Input validation and security
  • ✅ Calculation history with persistence
  • ✅ Interactive command line interface
  • ✅ Comprehensive error handling
  • ✅ Unit tests included

Testing

npm test

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published