ath - Evaluate mathematical expressions in a compact one-liner
$ perl -Math -e'2+2' $ perl -Math -e'5!' $ perl -Math -e'round e^(i*pi)' $ perl -Math -e'log 5rand' $ perl -Math -e'2π'
A source filter that parses and evaluates the source code as a mathematical expression using Math::Calc::Parser, and prints the result.
Report any issues on the public bugtracker.
Dan Book, dbook@cpan.org
dbook@cpan.org
Copyright 2015, Dan Book.
This library is free software; you may redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Math::Calc::Parser
To install Math::Calc::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Calc::Parser
CPAN shell
perl -MCPAN -e shell install Math::Calc::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.