← BACK

Calculator

A modern calculator inspired by the IOS calculator UI

JavaScript ⭐ 0

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

  1. Basic Mode

    • Use number pad for digits
    • Basic arithmetic operations available by default
    • Memory functions accessible at all times
  2. Scientific Mode

    • Click 'SCI' to toggle scientific functions
    • Toggle between DEG/RAD for angle calculations
    • Access advanced mathematical operations
  3. History

    • View previous calculations
    • Click on history items to reuse results

Keyboard Shortcuts

  • Numbers: 0-9
  • Operations: +, -, *, /
  • Enter: Calculate
  • Escape: Clear
  • Decimal: .

Installation

  1. Clone the repository
  2. Open index.html in a modern web browser
  3. 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