MathGroup Archive 2004

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

Search the Archive

Re: functions


On second thought, I think this is a better idea:

   IrrationalQ[x_] := Denominator[Rationalize[x,.0001]] > 50

With it, IrrationalQ[Random[]] returns True most of the time, as it 
should (probability approx .85), but returns False often enough to be 
interesting.

-----
Selwyn Hollis
http://www.math.armstrong.edu/faculty/hollis
(edit reply-to to reply)


  • Prev by Date: Re: Problem with FullSimplify in Version 5: Rationals are converted to Reals
  • Next by Date: Re: Many Functions Into One
  • Previous by thread: functions
  • Next by thread: Re: functions