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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 4967 Revision 4968
8=head3 RealPeriodic 8=head3 RealPeriodic
9 9
10 usage Context("RealPeriodic"); 10 usage Context("RealPeriodic");
11 $a = Real("pi/2")->with(period=>pi); 11 $a = Real("pi/2")->with(period=>pi);
12 $a->cmp # will match pi/2, 3pi/2 etc. 12 $a->cmp # will match pi/2, 3pi/2 etc.
13 13
14
14=cut 15=cut
15 16
16 17
17 18
18package RealPeriodic; 19package RealPeriodic;
50=head3 ComplexPeriodic 51=head3 ComplexPeriodic
51 52
52 usage Context("ComplexPeriodic"); 53 usage Context("ComplexPeriodic");
53 $z0 = Real("i^i")->with(period=>2pi, logPeriodic=>1); 54 $z0 = Real("i^i")->with(period=>2pi, logPeriodic=>1);
54 $z0->cmp # will match exp( i (ln(1) + Arg(pi/2)+2k pi ) ) 55 $z0->cmp # will match exp( i (ln(1) + Arg(pi/2)+2k pi ) )
55 56
56=cut 57=cut
57 58
58 59
59package ComplexPeriodic; 60package ComplexPeriodic;
60@ISA = ("Value::Complex"); 61@ISA = ("Value::Complex");

Legend:
Removed from v.4967  
changed lines
  Added in v.4968

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9