A scientific calculator app built with Python/Tkinter featuring a modern Catppuccin Mocha UI — built with Claude Code
Features: basic arithmetic, trig/inverse-trig, log/ln, factorial, memory (MC/MR/M+/M−), DEG/RAD toggle, auto-resizing display, hover effects, keyboard bindings, and clipboard copy. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| calculator.py | ||
| README.md | ||
Scientific Calculator
A desktop scientific calculator built with Python and Tkinter.
Features
Basic arithmetic
- Addition, subtraction, multiplication, division
- Modulo (
%), power (xʸ), parentheses - Negate (
±), decimal point
Scientific functions
- Trigonometry:
sin,cos,tan(degrees) √x— square rootlog— base-10 logarithmln— natural logarithmx!— factorial- Constants:
πande
Requirements
- Python 3.8+ (Tkinter is included in the standard library)
Run
python calculator.py
Keyboard shortcuts
| Key | Action |
|---|---|
0-9, . |
Digits |
+, -, *, /, % |
Operators |
(, ) |
Parentheses |
Enter |
Evaluate |
Backspace |
Delete last character |
Esc |
Clear all |