MathGroup Archive 2004

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

Search the Archive

Re: functions

  • To: mathgroup at
  • Subject: [mg45526] Re: [mg45481] functions
  • From: Selwyn Hollis <sh2.7183 at>
  • Date: Mon, 12 Jan 2004 02:15:36 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

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 

Selwyn Hollis
(edit reply-to to reply)

  • References:
  • 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