You are not logged in.
Pages: 1
I need a function dic(x) that gives 1 when x is rational and 0 when it's irrational.
Please give me some advice.
I think there will exist such.
IPBLE: Increasing Performance By Lowering Expectations.
Offline
You could prove a number is rational by discovering the ratio (example: 1.5 is 3/2, hence rational)
And there are various proofs for irrational numbers.
But there are also "Open Questions", see Wikipedia Article (near end), so the best you could do (using current knowledge!) would be:
disc(x) = 1 when rational
disc(x) = -1 when irrational
disc(x) = 0 when unknown
Now, a computer program could run through thousands of decimal places looking for a repeating pattern and never discover it, but that would not prove anything - it could still be the ratio of two very large numbers!
"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman
Offline
I found something:
Number r is:
1.Rational, if the function
Last edited by krassi_holmz (2006-01-01 05:23:42)
IPBLE: Increasing Performance By Lowering Expectations.
Offline
But it's useless, because I don't know non-trivial terms for a function to be periodic.
IPBLE: Increasing Performance By Lowering Expectations.
Offline
Pages: 1