Math::Fortran - Perl implementations of Fortran's sign() and log10()
use Math::Fortran qw(log10 sign); $v = log10($x); $v = sign($y); $v = sign($x, $y);
This module provides and exports some mathematical functions which are built in in Fortran but not in Perl. Currently there are only 2 included.
Log to the base of 10
With 1 parameter, +1 if $y >= 0, -1 otherwise. With 2 parameters +abs($x) if $y >= 0, -abs($x) otherwise.
I welcome other entries for this module and bug reports.
John A.R. Williams J.A.R.Williams@aston.ac.uk
John M. Gamble jgamble@cpan.org (current maintainer)
To install Math::Fortran, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Fortran
CPAN shell
perl -MCPAN -e shell install Math::Fortran
For more information on module installation, please visit the detailed CPAN module installation guide.