Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nav3005/scientific-calculator

Project on Scientific Calculator using Java
https://github.com/nav3005/scientific-calculator

java javafx

Last synced: about 2 months ago
JSON representation

Project on Scientific Calculator using Java

Awesome Lists containing this project

README

        

# Scientific Calculator

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.

## Features

- **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.

## Installation and Setup

1. **Ensure Java is Installed**: Make sure you have Java Development Kit (JDK) installed on your system. You can download it from the [official website](https://www.oracle.com/java/technologies/javase-downloads.html).

2. **Clone the Repository**: Clone this repository to your local machine using the following command:
```bash
git clone https://github.com/Nav3005/Scientific-Calculator.git
```

3. **Navigate to the Project Directory**: Change your current directory to the project directory:
```bash
cd Scientific-Calculator
```

4. **Compile the Code**: Compile the Java source files:
```bash
javac ScientificCalculator.java
```

5. **Run the Application**: Run the compiled Java application:
```bash
java ScientificCalculator
```

## Usage

1. **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.

2. **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`, or `tan` 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.