-
-
17 Jan 2022 19:26:17 UTC
- Distribution: ToolSet-Math
- Module version: 1.002
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (236 / 0 / 21)
- Kwalitee
Bus factor: 1- 97.53% Coverage
- License: perl_5
- Perl: v5.22.0
- Activity
24 month- Tools
- Download (9.58KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
ToolSet::Math - Bring in common math functions and constants.
SYNOPSIS
use ToolSet::Math;
is equivalent to:
use List::Util qw(max min sum sum0); use Math::Trig; use Math::Complex; use Math::Complex ":pi"; use POSIX qw(ceil floor modf pow round isfinite isinf isnan);
Also, several constants are defined as well:
E LN2 LN10 PI PI2 PI4 PIP2 PIP4 SQRT2 SQRT5 SQRT1_2 GOLDENR Inf nan NaN NAN FLT_EPSILON DBL_EPSILON
In addition, two functions are automatically exported:
log2
for base-2 logarithm, andfac
for factorial.DESCRIPTION
This module automatically exports convenience math functions and constants which are not available by default in Perl, such as
ceil
,floor
,round
,log10
and trigonometric ones liketan
,asin
,cosec
, anddeg2rad
. It also sets up support for complex numbers to expand Perl's math capabilities.See
Math::Trig
andMath::Complex
for details on all exported functions.AUTHOR
Gerald Lai <glai@cpan.org>
COPYRIGHT
Copyright 2021- Gerald Lai
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install ToolSet::Math, copy and paste the appropriate command in to your terminal.
cpanm ToolSet::Math
perl -MCPAN -e shell install ToolSet::Math
For more information on module installation, please visit the detailed CPAN module installation guide.