Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ Scientific Calculator

This project is a fully functional Scientific Calculator built using Java Swing. It combines both standard and advanced mathematical capabilities with a sleek, user-friendly interface. It is ideal for students, professionals, and anyone looking for a reliable offline calculator application.

🌟 Key Features

  • Basic arithmetic operations: +, -, Γ—, Γ·
  • Scientific functions: sin, cos, tan, ln, exp, √
  • Constants like Ο€ and support for exponentiation (^)
  • Full support for parentheses and nested expressions
  • History panel to view previous calculations
  • Toggle between Light Mode and Dark Mode
  • Responsive, compact layout using GridLayout
  • Real-time input and display formatting
  • Custom button rendering and clean modern UI

πŸ–ΌοΈ User Interface

The UI is divided into 3 main sections:

  • Display Panel: Shows the current input and result
  • Button Grid: Calculator keys arranged in a 7x4 grid layout
  • History Log: Scrollable area to track past expressions and outputs

πŸ› οΈ Technologies Used

  • Java - Core programming language
  • Swing - For GUI design
  • AWT - For basic event handling and graphics

πŸš€ Getting Started

To run this project locally:

  1. Ensure Java JDK 8 or later is installed
  2. Clone or download this repository
  3. Open the project in your IDE (Eclipse, IntelliJ, etc.)
  4. Run the ScientificCalculator.java file

πŸ“‹ Example Expressions Supported

  • sin(30) + cos(45)
  • (2 + 3) * 4
  • exp(2) + ln(10)
  • √(25) + 3^2

🎨 Dark Mode

From the menu bar, select View β†’ Toggle Dark Mode to switch between themes. Button colors and display background adapt accordingly.

About

A Java Swing-based scientific calculator with custom UI, dark mode, history log, and support for advanced functions, expression parsing, constants, and parentheses evaluation.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors