A feature-rich calculator application built in Java with graphing capabilities. This application provides an intuitive interface for performing mathematical operations and visualizing functions.
- Enter a mathematical expression in the input field
- Click "Calculate" to evaluate the expression
- Results will appear in the output area below
- Enter a function using 'x' as the variable (e.g.,
2*x^2 + 3*x - 5) - Click "Graph" to plot the function
- Use mouse or buttons to adjust the view:
- Click and drag to pan
- Use mouse wheel to zoom
- Use "+ / -" buttons to zoom in/out
- Click "Reset" to restore default view
+Addition-Subtraction*Multiplication/Division^Exponentiation
sin(x)Sine functioncos(x)Cosine functiontan(x)Tangent functionlog(x)Base-10 logarithmln(x)Natural logarithm (base e)sqrt(x)Square rootabs(x)Absolute value
- Java Runtime Environment (JRE) 11 or higher
- Clone the repository
- Compile the Java files:
javac CalculatorMain.java AdvancedCalculator.java GraphingCalculator.java - Run the application:
java CalculatorMain
CalculatorMain.java- Main application class and UI componentsAdvancedCalculator.java- Mathematical expression parsing and evaluationGraphingCalculator.java- Function plotting and visualization

