The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ath - Evaluate mathematical expressions in a compact one-liner

SYNOPSIS

  $ 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π'

DESCRIPTION

A source filter that parses and evaluates the source code as a mathematical expression using Math::Calc::Parser, and prints the result.

BUGS

Report any issues on the public bugtracker.

AUTHOR

Dan Book, dbook@cpan.org

COPYRIGHT AND LICENSE

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.

SEE ALSO

Math::Calc::Parser