Skip to content

A custom calculator app inspired by the standard Windows calculator, allowing users to perform various scientific calculations, and keep track of history

Notifications You must be signed in to change notification settings

IsidorManning/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The calculator can be found on my website

This custom calculator application provides users with a versatile tool for performing various mathematical calculations. Users can perform basic arithmetic operations, use scientific functions, and track their calculation history. The calculator offers a user-friendly interface with support for both single and pair operations.

Goals

Versatile Calculation: Provide users with the ability to perform a wide range of mathematical operations, including basic arithmetic, scientific functions, and more.

User-Friendly Interface: Design an intuitive interface that allows users to easily input calculations and view results.

History Tracking: Implement a feature to track calculation history, enabling users to review past calculations.

Functionality

Arithmetic Operations: Users can perform addition, subtraction, multiplication, and division operations on numerical inputs.

Scientific Functions: The calculator supports various scientific functions such as square root, exponentiation, logarithm, factorial, and more.

History Tracking: Calculation history is displayed in a separate area, allowing users to review past calculations and results.

Components

HTML Structure: Defines the layout and structure of the calculator interface. CSS Styling: Enhances the visual appearance and user experience through custom styling. JavaScript (ES6+): Implements the calculator logic, including input handling, calculation processing, and history tracking.

Usage

Basic Arithmetic:

Use numerical buttons to input numbers. Click on operation buttons to perform basic arithmetic operations. Press the "=" button to evaluate the expression and display the result. The calculation gets added to the history

Scientific Functions:

Access scientific functions such as square root, exponentiation, logarithm, and factorial using buttons. Input the required values and click on the corresponding function button to perform the operation.

History Tracking:

View past calculations and results in the history section. Click on a calculation entry to populate the calculator display with the corresponding expression and result.

Code Structure

Calculator Class: Implements the core calculator functionality, including arithmetic operations, scientific functions, display management, and history tracking.

Formating Class: Provides methods for formatting numerical values and expressions for display.

Preprocessing Class: Handles preprocessing of input expressions to ensure proper calculation.

History Class: Manages the display and functionality of the calculation history section.

For the future me:

  • better code readability
  • Full code documentation (currently, there is none)
  • more effecient and reusable code

About

A custom calculator app inspired by the standard Windows calculator, allowing users to perform various scientific calculations, and keep track of history

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published