Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nav3005/scientific-calculator
- Owner: Nav3005
- Created: 2024-07-27T12:48:29.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T04:11:33.000Z (6 months ago)
- Last Synced: 2024-11-19T21:09:35.234Z (about 2 months ago)
- Topics: java, javafx
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.