This is a simple calculator script created by Shashanka Shekhar Sharma and Chaitanya Singh Negi. The calculator supports basic arithmetic operations, trigonometric functions, solving quadratic and cubic equations, computing logarithms, calculating factorials, and plotting polynomial graphs.
- Arithmetic Operations: Addition, subtraction, multiplication, and division of numbers.
- Trigonometric Functions: Sine, cosine, tangent, secant, cosecant, cotangent, and their respective inverse functions.
- Quadratic and Cubic Equations: Solve quadratic and cubic equations with real and complex roots.
- Logarithms: Compute logarithms with specified bases.
- Factorials: Calculate the factorial of a given number.
- Polynomial Graphs: Plot the graph of a polynomial equation.
- History Tracking: Save the history of calculations to a CSV file.
- Run the script.
- Choose the desired operation from the menu.
- Follow the prompts to input the necessary values.
- View the result and choose whether to continue with the current result or start a new operation.
- Optionally, type "history" to view the history of calculations.
- History: Typing "history" at the operation choice prompt will display the history of calculations from the CSV file.
The script requires the following Python modules:
math
: For mathematical operations.csv
: For handling CSV files.os
: For file system operations.time
: For measuring the time spent on the calculator.numpy
: For numerical operations.matplotlib
: For plotting graphs.
The calculator saves the history of calculations to a CSV file named "calculator_history.csv." The CSV file contains two columns: "Operation" and "Result."
- Shashanka Shekhar Sharma
- Chaitanya Singh Negi
The script was developed as a collaborative effort and is open for contributions and improvements. Feel free to explore and enhance its functionality!