Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1990
*January
*February
*March
*April
*May
*June
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1990

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

Search the Archive

NumberQ

  • To: mathgroup at yoda.ncsa.uiuc.edu
  • Subject: NumberQ
  • From: Steve Christensen <uunet!yoda.ncsa.uiuc.edu!stevec>
  • Date: Fri, 27 Apr 90 09:27:16 -0500

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