This project is a Scientific Calculator implemented using JavaFX for the GUI. It supports basic arithmetic operations as well as scientific functions like square root, power, sine, cosine, tangent, and logarithm.
- Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
- Scientific Functions: Square root, power, sine, cosine, tangent, and logarithm.
- User-Friendly GUI: Intuitive interface built with JavaFX.
-
Ensure Java is Installed: Make sure you have Java Development Kit (JDK) installed on your system. You can download it from the official website.
-
Clone the Repository: Clone this repository to your local machine using the following command:
git clone https://github.com/Nav3005/Scientific-Calculator.git
-
Navigate to the Project Directory: Change your current directory to the project directory:
cd Scientific-Calculator
-
Compile the Code: Compile the Java source files:
javac ScientificCalculator.java
-
Run the Application: Run the compiled Java application:
java ScientificCalculator
-
Launching the Application:
- Run the
ScientificCalculator
class to start the application. - A window titled "Scientific Calculator" will appear with a display and buttons for numbers, basic arithmetic operations, and scientific functions.
- Run the
-
Using the Calculator:
- Entering Numbers: Click on the number buttons to enter digits.
- Performing Basic Operations: Click on the
+
,-
,*
, or/
buttons to perform addition, subtraction, multiplication, or division respectively. - Calculating Result: Click on the
=
button to evaluate the expression and display the result. - Clearing the Display: Click on the
C
button to clear the display. - Using Scientific Functions:
- Click on the
√
button to calculate the square root of the displayed number. - Click on the
pow
button followed by entering the exponent to calculate the power. - Click on the
sin
,cos
, ortan
buttons to calculate the sine, cosine, or tangent of the displayed number. - Click on the
log
button to calculate the natural logarithm of the displayed number.
- Click on the