Skip to content

A C program that creates graphs of mathematical functions calculated using the Dijkstra algorithm and reverse Polish notation.

Notifications You must be signed in to change notification settings

veranemoloko/reverse-polish-notation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Reverse Polish Notation (RPN) Calculator

This project is a calculator that evaluates mathematical expressions written in Reverse Polish Notation (RPN). It also supports plotting graphs for functions. The project is implemented in the C programming language.

What is Reverse Polish Notation?

Reverse Polish Notation (RPN) is a mathematical notation in which operators follow their operands. For example:

  1. Input: 3 + 4 RPN:3 4 +
  2. Input: (1 + 2) * 4 + 3 RPN: 1 2 + 4 * 3 + Learn more about RPN on https://ru.wikipedia.org/wiki/Обратная_польская_запись #№ How to Use
  3. Enter an math expression. Example: sin(x) * cos(x/2)
  4. The program will evaluate the expression and print the result or plot the graph.

Supported operations:

  • Basic arithmetic: +, -, *, /, unary minus
  • Trigonometric functions: sin(), cos(), tg(), ctg()
  • Logarithmic functions: ln()
  • Square root: sqrt()

Build and Run

git clone https://github.com/veranemoloko/reverse_polish_notation.git
cd reverse_polish_notation 
make
./graph

Снимок экрана 2025-03-19 170834

About

A C program that creates graphs of mathematical functions calculated using the Dijkstra algorithm and reverse Polish notation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published