Scientific Calculator
A sophisticated web-based calculator built with vanilla JavaScript, featuring both basic arithmetic and advanced scientific calculations.
Features
Basic Operations
- Addition, subtraction, multiplication, division
- Percentage calculations
- Decimal support
- Clear and all-clear functions
Scientific Functions
- Trigonometric functions (sin, cos, tan)
- Inverse trigonometric functions
- Hyperbolic functions
- Logarithms (natural and base-10)
- Powers and roots
- Constants (π, e)
- Factorial calculations
- Random number generation
Additional Features
- Memory operations (M+, M-, MR, MC)
- Calculation history
- Degree/Radian mode toggle
- Keyboard support
- Responsive design
Technologies Used
- HTML5
- CSS3
- Vanilla JavaScript
- Google Fonts (Montserrat)
Usage
Basic Mode
- Use number pad for digits
- Basic arithmetic operations available by default
- Memory functions accessible at all times
Scientific Mode
- Click 'SCI' to toggle scientific functions
- Toggle between DEG/RAD for angle calculations
- Access advanced mathematical operations
History
- View previous calculations
- Click on history items to reuse results
Keyboard Shortcuts
- Numbers: 0-9
- Operations: +, -, *, /
- Enter: Calculate
- Escape: Clear
- Decimal: .
Installation
- Clone the repository
- Open
index.html in a modern web browser
- No additional dependencies or setup required
Browser Support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
Contributing
Feel free to submit issues and enhancement requests.
Credits
Created by ocdeedcodes