notenderfury/calculator
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Modern Calculator Application A feature-rich calculator application built with Python and Tkinter, offering both basic arithmetic and scientific calculations in a clean, modern interface. Features Basic Operations Addition (+) Subtraction (-) Multiplication (×) Division (÷) Percentage calculations (%) Positive/negative toggle (±) Decimal point support Clear function (C) Scientific Functions Trigonometric functions (sin, cos, tan) Square root (√) Powers (^) Pi constant (π) Parentheses support for complex expressions UI Features Large, clear display Responsive grid layout Professional styling Error handling Keyboard input support Mouse click support Requirements Python 3.x Tkinter (usually comes pre-installed with Python) Installation Ensure Python 3.x is installed on your system bashCopypython --version Save the calculator code to a file named calculator.py Run the application: bashCopypython calculator.py Usage Instructions Basic Calculations Click the number buttons to input values Use operation buttons (+, -, ×, ÷) for basic arithmetic Press '=' to see the result 'C' clears the display Scientific Operations Use 'sin', 'cos', 'tan' for trigonometric calculations '√' calculates square root '^' raises a number to a power 'π' inputs the value of pi Use parentheses for complex expressions Additional Features '±' toggles between positive and negative numbers '%' converts the current number to a percentage '.' adds decimal point for floating-point numbers