Skip to content

memehri/Regex_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ Math Expression Evaluator

πŸš€ Overview

This program processes a mathematical expression as a string, builds a tree representation of the expression, and evaluates the result efficiently.

✨ Supported Operations

The program supports the following mathematical operators:

  • Addition

  • Subtraction

  • Multiplication

  • Division

  • Exponentiation

🎯 Supported Functions

Additionally, the program supports several mathematical functions:

sin(x): Sine function

cos(x): Cosine function

tan(x): Tangent function

cot(x): Cotangent function

log(x): Logarithm (base 10)

ln(x): Natural logarithm (base e)

πŸ› οΈ How It Works

The program takes a mathematical expression as input.

It constructs an Abstract Syntax Tree (AST) to represent the expression.

The tree is evaluated recursively to compute the final result.

πŸ“œ License

This project is open-source. Feel free to use and modify it as needed.

🌟 Star this repo if you find it useful! 🌟

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages