Useful mathematical functions not in Perl
