Skip to content
Math::RPN::Simple is simpler implementation of Math::RPN.
Perl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Math/RPN
.gitignore
CHANGELOG.md
CONTRIBUTORS.md
Changes
LICENSE
MANIFEST
Makefile.PL
README.md
VERSION

README.md

Math::RPN::Simple

Made with Perl

GitHub GitHub followers GitHub forks GitHub stars GitHub watchers GitHub contributors

GitHub commit activity GitHub commit activity GitHub commit activity GitHub last commit

GitHub issues GitHub closed issues

Donate

Math::RPN::Simple is simpler implementation of Math::RPN.

Content

Installation

Windows

  • Install Git.
  • Install Perl.
  • Run following command in the command prompt:
cpan -i Math::RPN::Simple

Unix

Debian/Ubuntu based

  • Run following commands in the terminal:
sudo apt install git perl -y
cpan -i Math::RPN::Simple

Arch Linux/Manjaro

  • Run following commands in the terminal:
sudo pacman -S git perl --noconfirm
cpan -i Math::RPN::Simple

CentOS

  • Run following commands in the terminal:
sudo yum install git perl -y
cpan -i Math::RPN::Simple

MacOS

  • Run following commands in the terminal:
brew install git perl
cpan -i Math::RPN::Simple

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

See also the list of contributors who participated in this project.

Contact

  • Discord: DeBos#3292
  • Reddit: DeBos99

License

This project is licensed under the MIT License - see the LICENSE file for details.

You can’t perform that action at this time.