A feature-rich smart calculator built using Python's Tkinter library. This calculator not only performs basic arithmetic operations but also handles advanced mathematical functions and supports voice commands.
- Basic arithmetic operations: addition, subtraction, multiplication, and division.
- Advanced mathematical functions: square root, power, factorial, trigonometric functions, logarithmic functions, and more.
- Speech recognition for voice commands.
- Graphical User Interface (GUI) with easy-to-use buttons and input field.
- Error handling for invalid inputs.
Make sure you have the following software installed:
- Python 3.x
tkinter
library (comes pre-installed with Python)pygame
librarySpeechRecognition
librarypyaudio
library
You can install the required Python libraries using pip
:
pip install pygame SpeechRecognition pyaudio
Clone the repository to your local machine:
git clone https://github.com/yourusername/smart-calculator.git
cd smart-calculator
Run the Python script to start the calculator:
python smart_calculator.py
The calculator supports various voice commands for arithmetic operations and functions. Here are some examples:
- Addition: "add 5 and 3"
- Subtraction: "subtract 8 from 15"
- Multiplication: "multiply 7 by 4"
- Division: "divide 20 by 4"
- LCM: "LCM of 15 and 20"
- HCF: "HCF of 18 and 24"