# Math::RPN::Tiny














[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NH8JV53DSVDMY)
**Math::RPN::Tiny** is tiny implementation of [Math::RPN](https://metacpan.org/pod/Math::RPN).
## Content
- [Content](#content)
- [Installation](#installation)
- [Windows](#windows)
- [Unix](#unix)
- [Debian/Ubuntu](#apt)
- [Arch Linux/Manjaro](#pacman)
- [CentOS](#yum)
- [MacOS](#homebrew)
- [Documentation](#documentation)
- [Methods](#methods)
- [Operators](#operators)
- [Functions](#functions)
- [Authors](#authors)
- [Contact](#contact)
- [License](#license)
## Installation
### Windows
* Install [Git](https://git-scm.com/download/win).
* Install [Perl](http://strawberryperl.com/).
* Run following command in the command prompt:
```
cpan -i Math::RPN::Tiny
```
### Unix
#### Debian/Ubuntu based
* Run following commands in the terminal:
```
sudo apt install git perl -y
cpan -i Math::RPN::Tiny
```
#### Arch Linux/Manjaro
* Run following commands in the terminal:
```
sudo pacman -S git perl --noconfirm
cpan -i Math::RPN::Tiny
```
#### CentOS
* Run following commands in the terminal:
```
sudo yum install git perl -y
cpan -i Math::RPN::Tiny
```
#### MacOS
* Run following commands in the terminal:
```
brew install git perl
cpan -i Math::RPN::Tiny
```
## Documentation
## Methods
| Method | Description |
| :--------------------------- | :------------------------------------------------ |
| to_infix(expression) | Returns infix representation of **expression**. |
| to_postfix(expression) | Returns postfix representation of **expression**. |
| evaluate_infix(expression) | Returns value of infix **expression**. |
| evaluate_postfix(expression) | Returns value of postfix **expression**. |
## Operators
* \+
* \-
* \*
* /
* \**
## Functions
| Function | Description |
| :------- | :----------------------------------- |
| abs(x) | Returns absolute value of **x**. |
| int(x) | Returns int representation of **x**. |
## Authors
* **Michał Wróblewski** - Main Developer - [DeBos99](https://github.com/DeBos99)
## Contact
* Discord: DeBos#3292
* Reddit: [DeBos99](https://www.reddit.com/user/DeBos99)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.