PDL::Constants - basic compile time constants for PDL


PDL documentation Contained in the PDL distribution.

Index


Code Index:

NAME

Top

PDL::Constants -- basic compile time constants for PDL

DESCRIPTION

Top

This module is used to define compile time constant values for PDL. It uses the constant module for simplicity and availability. We'll need to sort out exactly which constants make sense but PI and E seem to be fundamental.

SYNOPSIS

Top

 use PDL::Constants;
 print 'PI is ' . PI . "\n";
 print 'E  is ' .  E . "\n";

COPYRIGHT & LICENSE

Top


PDL documentation Contained in the PDL distribution.
package PDL::Constants;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(PI E);  # symbols to export
                           
use constant PI    => 4 * atan2(1, 1);
use constant E     => exp(1);

1;