MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Define new constant as Pi is


In article <e1vf0p$9do$1 at smc.vnet.net>, suchaneck <greenux at gmx.de> 
wrote:

> I'm programming a package for Max-Plus Algebra, where the constant
> \[Epsilon} is the same as -\[Infinity]. I want Mathematica to operate with
> it, like it does with Pi. While calculating a function it knows that the
> Symbol Pi is 3.14..., but within the Output Pi is kept as Symbol. I want
> the same for \[Epsilon}. Does anybody knows a solution for that? Thanks.

If you define

  N[\[Epsilon]] := -Infinity

then if you enter

  (\[Epsilon] + 3)^2 - \[Epsilon]

the output is not evaluated. Then apply N.

  N[%]
  Infinity

Cheers,
Paul

_______________________________________________________________________
Paul Abbott                                      Phone:  61 8 6488 2734
School of Physics, M013                            Fax: +61 8 6488 1014
The University of Western Australia         (CRICOS Provider No 00126G)    
AUSTRALIA                               http://physics.uwa.edu.au/~paul


  • Prev by Date: Re: Problem with limiits
  • Next by Date: Re: Problem with limiits
  • Previous by thread: Define new constant as Pi is
  • Next by thread: Initial conditions for DAE