MathGroup Archive 2004

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

Search the Archive

Re: functions


David:

Re ...

> But
> 
> g[2.0]
> 0.5
> 
> does not treat 2.0 as rational. Maybe you will get a better answer on this
> part.
> 
> David Park
> djmp at earthlink.net
> http://home.earthlink.net/~djmp/

I think a "better answer" can be had by examining Mathematica 5.0's
ability to remain error free when confronted with cleverly constructed
known irrational expressions, such as the one below, copied from the
Built-In Functions reference for Rationals.

    In[1]:= Element[3^(Sqrt[5]), Rationals]
    Out[1]= False

Regards,
Harold


  • Prev by Date: Symplectic integration and Interpolating function
  • Next by Date: Timing[] returned { Null Second, {}} ?!?
  • Previous by thread: Re: functions
  • Next by thread: Re: functions