Skip to content

A simple calculator written in c# using reverse polish notation and shunting yard algorithm

License

Notifications You must be signed in to change notification settings

kopytk0/Console-Calculator

Repository files navigation

Console-Calculator

A simple calculator written in c# using reverse polish notation.

Operators:

+, -, /, *, %(modulo)

Functions:

One argument:

sin/sinus - sinus

cos/cosinus - cosinus

tan/tg/tangent - tangent

ctg/cot/cotangent - cotangent

deg - converts radians to degrees

rad - converts degrees to radians

Non arguments:

pi/PI - returns 3.1415926535897932384626433832

e/E - returns 2.71828182845904

Example usage

sin(pi)^4%20+1-(200-99.5*2) = 0