[system] / trunk / pg / macros / contextPeriodic.pl Repository:
ViewVC logotype

View of /trunk/pg/macros/contextPeriodic.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5551 - (download) (as text) (annotate)
Tue Oct 2 20:48:05 2007 UTC (12 years, 2 months ago) by sh002i
File size: 510 byte(s)
improved formatting for docs -- these were in pod sections but were all
formatted as verbatim sections, and i moved them into normal paragraphs,
lists, etc. should make things more readable from the web.

    1 =head1 NAME
    2 
    3 contextPeriodic.pl - Allow for specifying periodic functions. [DEPRECATED]
    4 
    5 =head1 DESCRIPTION
    6 
    7 This file is no longer needed, as these features have been added to the
    8 Real and Complex MathObject classes.
    9 
   10 =head1 USAGE
   11 
   12     Context("Numeric");
   13     $a = Real("pi/2")->with(period=>pi);
   14     $a->cmp         # will match pi/2, 3pi/2 etc.
   15 
   16     Context("Complex");
   17     $z0 = Real("i^i")->with(period=>2pi, logPeriodic=>1);
   18     $z0->cmp        # will match exp(i*(ln(1) + Arg(pi/2) + 2k pi))
   19 
   20 =cut
   21 
   22 1;
   23 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9