![]() |
MathUtil
use MathUtil;
use MathUtil qw(:all);
MathUtil module provides a variety of common math functions not available in core Perl package or some other useful math utilities. In order to be consistent with other Perl functions, name of all the functions in this package are in lowercase which differs from MayaChemTools naming convention for function names.
MathUtil module provides the following functions:
acos, asin, ceil, floor, log10, max, min, random, round, tan
Returns the nverse cosine of an angle expressed in Radians using Math::Trig::acos function
Returns the inverse sine of an angle expressed in Radians using Math::Trig::asin function
Returns the next largest integer for Value using POSIX::ceil function
Returns the previous smallest integer for Value using POSIX::floor function
Returns the log of Value using base 10
Returns a Number corresponding to the maximum of Number1 and Number2
Returns a Number corresponding to the minimum of Number1 and Number2
Returns a pseudo random number between 0 and 1, 0 and specified Number, or between Number1 and Number2
Returns a value corresponding to a nearst ingeter for Number or formatted to DecimalPlaces
Returns the tangent of an angle expressed in Radians
Constants.pm, ConversionsUtil.pm
Copyright (C) 2004-2008 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.