Skip to content

awaisAhmed19/ScientificCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scientific Calculator Project

This project is a Python-based scientific calculator that includes a parsing algorithm called a tokenizer and a postfix evaluator. These algorithms are fundamental for processing mathematical expressions and are the foundation for the calculator's functionality.

Table of Contents

Installation

To use this calculator, follow these steps:

  1. Clone the repository to your local machine: git clone https://github.com/awaisAhmed19/scientific-calculator.git

  2. Navigate to the project directory:

cd scientific-calculator Run the calculator:

python calculator.py

Usage

The calculator supports various mathematical operations, including addition, subtraction, multiplication, division, and exponentiation. Enter expressions in infix notation, and the calculator will parse and evaluate them using postfix notation.

Example usage:

Enter an expression: 2 + 3 * 4 Result: 14

Features

  1. Tokenizer for parsing mathematical expressions.
  2. Postfix evaluator for evaluating expressions.
  3. Support for basic arithmetic operations.
  4. User-friendly command-line interface.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:

  1. install and setup VScode and git
  2. Fork the repository.
  3. Create a new branch for your feature or 3. bug fix: git checkout -b feature-name.
  4. Make your changes and commit them: git commit -m "Add feature-name".
  5. Push your changes to your fork: git push origin feature-name.
  6. Open a pull request on the main repository.

About

Config files for my GitHub profile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages