pythonCalcByClaudeCode/README.md
anas-rashid 05fdd13cd6 Add scientific calculator with modern Catppuccin Mocha UI
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>
2026-04-01 00:18:02 +02:00

804 B

Scientific Calculator

A desktop scientific calculator built with Python and Tkinter.

Features

Basic arithmetic

  • Addition, subtraction, multiplication, division
  • Modulo (%), power (), parentheses
  • Negate (±), decimal point

Scientific functions

  • Trigonometry: sin, cos, tan (degrees)
  • √x — square root
  • log — base-10 logarithm
  • ln — natural logarithm
  • x! — factorial
  • Constants: π and e

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