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

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

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

Revision 2625 Revision 2626
24# sub Compute { 24# sub Compute {
25# my $formula = Formula(shift); 25# my $formula = Formula(shift);
26# return $formula->eval(@_); 26# return $formula->eval(@_);
27# } 27# }
28 28
29#
30# Make a point or list a closed interval
31#
32sub Closed {
33 my $x = shift;
34 if (Value::isValue($x)) {$x->{open} = '['; $x->{close} = ']'}
35 return $x;
36}
37
29########################################################################### 38###########################################################################
30# 39#
31# Make it possible to use 1+3*i in perl rather than 1+3*$i or 1+3*i() 40# Make it possible to use 1+3*i in perl rather than 1+3*$i or 1+3*i()
32# 41#
33#sub i () {Value::Complex->i}; # defined in Parser.pl 42#sub i () {Value::Complex->i}; # defined in Parser.pl

Legend:
Removed from v.2625  
changed lines
  Added in v.2626

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9