1Constants(3) User Contributed Perl Documentation Constants(3)
2
3
4
6 PDL::Constants -- basic compile time constants for PDL
7
9 This module is used to define compile time constant values for PDL. It
10 uses Perl's constant pragma for simplicity and availability.
11
13 use PDL::Constants qw(PI E);
14 print 'PI is ' . PI . "\n";
15 print 'E is ' . E . "\n";
16
17 PI
18 The ratio of a circle's circumference to its diameter
19
20 DEGRAD
21 The number of degrees of arc per radian (180/PI)
22
23 E
24 The base of the natural logarithms or Euler's number
25
27 Copyright 2010 Chris Marshall (chm at cpan dot org).
28
29 This program is free software; you can redistribute it and/or modify it
30 under the terms of either: the GNU General Public License as published
31 by the Free Software Foundation; or the Artistic License.
32
33 See http://dev.perl.org/licenses/ for more information.
34
35
36
37perl v5.34.0 2022-02-28 Constants(3)