Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scientific Calculator

A beautiful scientific calculator built with vanilla JavaScript, featuring expression parsing, trigonometric functions, memory operations, calculation history, and full keyboard support.

Live Demo

Screenshot

Features

  • Basic operations -- addition, subtraction, multiplication, division, modulo
  • Scientific functions -- sin, cos, tan, log, ln, sqrt, power, factorial
  • Expression parsing -- full parentheses support with implicit multiplication
  • Memory -- MC, MR, M+, M- with visual indicator
  • History panel -- last 20 calculations, click to reuse
  • Keyboard support -- type numbers, Enter = equals, Escape = clear, Backspace = delete
  • DEG/RAD toggle -- switch between degree and radian mode for trig functions
  • Dark glassmorphism theme -- frosted glass UI with animated background
  • Responsive -- works as a phone calculator on mobile devices
  • Zero dependencies -- pure HTML, CSS, and JavaScript

Keyboard Shortcuts

Key Action
0-9, . Input numbers
+, -, *, / Operators
^ Power
! Factorial
(, ) Parentheses
Enter or = Evaluate
Escape or Delete Clear
Backspace Delete last character

Tech Stack

  • HTML5
  • CSS3 (glassmorphism, CSS Grid, animations)
  • Vanilla JavaScript (expression tokenizer + shunting-yard evaluator)

License

MIT

About

Scientific calculator with expression parsing, trig functions, memory, history, and keyboard support.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages