MathGroup Archive 2004

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

Search the Archive

Re: functions


Unfortunately, a randomly chosen real number that ISN'T irrational
according to this test still has probability 1 of being irrational. 
(If the probability measure is anything reasonable, anyway -- if the
CDF has only countably many points of discontinuity, for instance.)

The probability that a user intended the number to be rational, on the
other hand, is completely imponderable.

Bobby

Selwyn Hollis <sh2.7183 at misspelled.erthlink.net> wrote in message news:<btthrc$so2$1 at smc.vnet.net>...
> 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: modifying style of notebook
  • Next by Date: Re: "Rubbish" integration outputs
  • Previous by thread: Re: Re: functions
  • Next by thread: Re: functions