MathGroup Archive 1990

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

Search the Archive

NumberQ


I am trying to define some numeric functions. If I make definitions
like
    myfun[x_Real] := thing1
    myfun[x_Integer] := thing2
    myfun[x_Number] := thing3
    myfun[x_Rational] := thing4
my function does not get evaluated for myfun[Sqrt[3]]. What type is
Sqrt[3]? I note that NumberQ[Sqrt[3]] returns False.

                               E. Neely Atkinson
                               AN123651 at UTHVM1.BITNET
                               neely at mdaali.cancer.utexas.edu



  • Prev by Date: deferred evaluation question
  • Next by Date: High precision floating point considered hazardous
  • Previous by thread: deferred evaluation question
  • Next by thread: Re: NumberQ