T.R | Title | User | Personal Name | Date | Lines |
---|
736.1 | some well known examples... | ENGINE::ROTH | | Wed Jul 22 1987 15:55 | 11 |
| Try f(x) = 0 if x is rational, f(x) = 1 if x is irrational.
Another nice example of a 'pathological' function is continuous
non-differentiable function. You construct it by a convergent
Fourier series whose derivative is divergent and hence non-existant:
w(t) = sqrt(1-w^2) * sum(n >= 0) (w^n * exp(2*pi*i*b^n*t))
with b real and > 1, w = b^h, 0 < h < 1
- Jim
|
736.2 | Need a discontinuous surjection | KIRK::KOLKER | Conan the Librarian | Wed Jul 22 1987 16:41 | 8 |
| re .1
Thank you for example. But I was looking for a function from the
reals onto the reals. My error for not being more explicit.
That other function which is nowhere differentiable, was that invented
by Wierstrass by any chance?
|
736.3 | onto | VINO::JMUNZER | | Wed Jul 22 1987 19:43 | 7 |
| Use
g(x) = f(x) + x
where f is defined in .1
John
|
736.4 | Not so hard... | TLE::BRETT | | Wed Jul 22 1987 19:49 | 29 |
| f(x) = x x is rational
-x otherwise
is pretty close, but is continuous at 0, so lets try to ruin that...
f(x) = x x is rational
= -x |x| > 1, x irrational
= 1+x -1..0 x irrational
= -1+x 0..1 x irrational
Creating the following cartesian graph
\ /
\ /
\ /
/ /
/ /
/ /
/ /
/ /
/ /
/ \
/ \
\
Voila! 1-1, onto, discontinuous everywhere
/Bevin
|
736.5 | | KIRK::KOLKER | Conan the Librarian | Wed Jul 22 1987 21:10 | 4 |
| re .3, .4
Thank you, thank you.
|
736.6 | a dollar late and a day short | CLT::GILBERT | Builder | Wed Jul 22 1987 22:01 | 4 |
| f(x) = x+1 x is rational
x-1 x is irrational
(I'd have replied earlier, but had to look up 'onto').
|
736.7 | Funny thing about computers... | AKQJ10::YARBROUGH | Why is computing so labor intensive? | Thu Jul 23 1987 12:58 | 14 |
| > Question: Does such a function exist.
> Question: If such a function exists, what is an algorithm to compute
> it.
As the earlier replies suggest, such a function exists; but no, there is no way
to compute functions of irrational numbers, because every value that is
representable in computers is rational.
However, let the domain of x be those numbers representable in H-arithmetic on
VAX. Then the least significant bit of x, LSB(x), is everywhere discontinuous
and representable.
Lynn Yarbrough
|
736.8 | | BEING::POSTPISCHIL | Always mount a scratch monkey. | Thu Jul 23 1987 14:24 | 12 |
| Re .7:
> . . . every value that is representable in computers is rational.
I have a calculator which represents sqrt(2) with a radical sign and a
two, pi with the letter pi, e with e, and i with i. It swears that
sqrt(2) squared is two and the cosine of pi is -1, and it arrives at
those conclusions without converting sqrt(2) or pi to numeric
representations first.
-- edp
|
736.9 | how long does it keep track of it? | MORRIS::JANZEN | Tom LMO2/O23 2965421 | Thu Jul 23 1987 15:32 | 11 |
| > I have a calculator which represents sqrt(2) with a radical sign and a
> two, pi with the letter pi, e with e, and i with i. It swears that
> sqrt(2) squared is two and the cosine of pi is -1, and it arrives at
> those conclusions without converting sqrt(2) or pi to numeric
> representations first.
Great. what does it do with:
(2.1 * pi) /2.1
?
Tom
|
736.10 | Just when you thought I was done... | KIRK::KOLKER | Conan the Librarian | Thu Jul 23 1987 17:49 | 11 |
| re .0 and others
yet another challange. Is there a discontinuous function f from
real onto real such that:
for each x in real and every small e > 0 and every large L >
0, there exists a pair of points x1, x2 in the e nbhd of x such
that |f(x1) - f(x2)| > L.
You might call such a function f *wildly* discontinuous.
|
736.11 | tamely discontinuous | VINO::JMUNZER | | Thu Jul 23 1987 19:21 | 13 |
| Re .10:
Given a rational x, express x in lowest terms -- i.e.
x = p / q
where p and q are relatively prime. Then let
f(x) = x + q
Let f(x) = x for irrational x.
John
|
736.12 | | ALIEN::POSTPISCHIL | Always mount a scratch monkey. | Thu Jul 23 1987 19:47 | 8 |
| Re .9:
It says '2.1*pi/2.1'. Depending on how you manipulate/evaluate that,
it may or may not convert to numeric representation before figuring it
is pi or 3.14159265359.
-- edp
|
736.13 | | DWOVAX::YOUNG | Back from the Shadows Again, | Thu Jul 23 1987 20:00 | 16 |
| Re. 12:
Thats one d*mn smart calculator.
Re .?: (lost track)
Using an idea from .11, heres a 'wildly' disc. function (I think):
f(x) = x-1 when x is irrational
f(x) = 0 when x is 0
f(x) = q / p when x is rational; x = p / q; p is even
f(x) = -q / p when x is rational; x = p / q; p is odd
Does this do it?
-- barry
|
736.14 | tamer | VINO::JMUNZER | | Fri Jul 24 1987 13:10 | 11 |
| Re .13:
Barry:
I think your function is too tame. A little interval around x is
mapped by f to three little intervals at (x-1) & (1/x) & (-1/x).
I understand .? to ask for the little interval to be mapped to an
unbounded set.
John
|
736.15 | is e**(Pi*i)=-1? | AKQJ10::YARBROUGH | Why is computing so labor intensive? | Fri Jul 24 1987 13:20 | 19 |
| > > . . . every value that is representable in computers is rational.
>
> I have a calculator which represents sqrt(2) with a radical sign and a
> two, pi with the letter pi, e with e, and i with i. It swears that
> sqrt(2) squared is two and the cosine of pi is -1, and it arrives at
> those conclusions without converting sqrt(2) or pi to numeric
> representations first.
OK, so you have a computer that manipulates symbols. That's nice, but they are
*symbols*, not *values*. Inside the computer, there is some (probably 8-bit
character) representation of Pi, Sqrt, I, etc., but these are merely reserved
integers which are interpreted in a special way. Their values are in fact
integers. Your ability to manipulate symbols does not give you any way of
representing a 'random' real number.
In fact, we don't have a decent way of *identifying* real numbers except to
describe them as (more or less complex) functions of the integers. At any rate,
we can only come close to computing arbitrary real numbers, which answers
the question posed in .0 negatively.
|
736.16 | | CLT::GILBERT | Builder | Fri Jul 24 1987 15:31 | 34 |
| I took issue with one of Lynn's comments in a previous reply (essentially
the same as Eric raises in note 739), and Lynn sent back the following,
which contains what I think is a very interesting question.
From: AKQJ10::YARBROUGH 24-JUL-1987 11:14
The original question was, in effect, can we compute functions of real (as
distinguished from rational) arguments? My thesis is no, we can't,
because we can't supply arguments that are not rationals. That's all.
Another way of posing the question is, can we write a program of the form
FUNCTION is_real(x)
IF <x is a representation of a rational number> THEN
return false
ELSE
return true
that returns 'true'?
Lynn Yarbrough
Suppose we limit the argument (to is_real) to an expression using addition,
subtraction, multiplication, division, and square roots, applied to integers.
Can we specify the is_real algorithm?
What if we include the trigonometric function sin and cos? I recall a result
proving that there are only trivial solutions in rational numbers (or was it
non-transendental numbers?) of the equations y = sin(x) or y = cos(x).
Can someone provide a reference?
What if pi is also included?
- Gilbert
|
736.17 | | BEING::POSTPISCHIL | Always mount a scratch monkey. | Fri Jul 24 1987 23:56 | 12 |
| Re .16:
Conjecture: Every expression formed from addition, subtraction,
multiplication, division, square roots, and integers can be expressed
in the form a+sqrt(b+sqrt(c+sqrt(d . . . ))) where the variables are
rationals and the sequence is finite. If the innermost variable is the
square of a rational number, the expression may be reduced -- if no
reduction is possible, the expression is said to be in simplest form.
An expression is rational only if its simplest form is simply a.
-- edp
|
736.18 | | BEING::POSTPISCHIL | Always mount a scratch monkey. | Sun Jul 26 1987 12:41 | 5 |
| In the previous response, "sqrt" may be either the positive or negative
root.
-- edp
|
736.19 | | ENGINE::ROTH | | Mon Jul 27 1987 09:23 | 15 |
| Here's an information theoreteic point of view. Suppose you can
represent a real number by a convergent series or continued
fraction, where the terms are formed by some 'algorithm' of finite
complexity. Quadratic surds have repeating continued fraction
expansions for example.
From this point of view you can know everything you need to know
about a given real number and its composition with other numbers
(addition, multiplication, etc).
Then a program could be said to be handling these real numbers in a
certain sense. But an arbitrary real number without a systematic
expansion rule couldn't be handled by this.
- Jim
|
736.20 | | ENGINE::ROTH | | Mon Jul 27 1987 09:27 | 11 |
| Random question...
Suppose we map the interval [0..1] onto 0 and 1 by f(x) = 0 if x rational,
f(x) = 1 if x irrational.
Map the interval [0..1] onto the unit square by a space filling curve,
such as a Hilbert curve.
What is the structure of the set of values of f(x) over square?
- Jim
|
736.21 | | CLT::GILBERT | Builder | Mon Jul 27 1987 15:28 | 2 |
| If we have f(x) = 0 if x is rational, f(x) = 1 if x is irrational,
then f is a periodic function!
|
736.22 | re .21: What is its period? | JON::MORONEY | Welcome to the Machine | Mon Jul 27 1987 16:29 | 0 |
736.23 | | CHOVAX::YOUNG | Back from the Shadows Again, | Mon Jul 27 1987 19:32 | 7 |
| Re .14:
Yes, after I entered .13, I realized that it did not meet the criteria,
but both of my local systems have been unavailable for the last
few days, so I have no had a chance to correct it.
I think there is a way to do it, but I am still testing it out.
|
736.24 | | CLT::GILBERT | Builder | Tue Jul 28 1987 14:14 | 5 |
| The book "Counterexamples in Analysis" by Gelbaum and Olmsted (Holden-Day)
includes a function defined on R (the reals), equal to zero almost everywhere
and whose range on every nonempty open interval is R.
The book contains many other interesting aberrations.
|
736.25 | | CLT::GILBERT | Builder | Wed Jul 29 1987 16:08 | 6 |
| re .21, .22
> If we have f(x) = 0 if x is rational, f(x) = 1 if x is irrational,
> then f is a periodic function!
Let r be rational. Then f(r+x) = f(x), and so the function has period r.
|
736.26 | | ENGINE::ROTH | | Wed Jul 29 1987 16:13 | 4 |
| I don't think that the foregoing argument really works, since there
doesn't seem to exist a fundamental (smallest) period.
- Jim
|
736.27 | | ULTRA::ELLIS | David Ellis | Thu Jul 30 1987 15:23 | 6 |
| What's the definition of a function being periodic?
Does there _have_ to be a fundamental period? (I didn't think so)
If constant functions are regarded as periodic, then there is no fundamental
period for them, either.
|
736.28 | | CLT::GILBERT | Builder | Fri Jul 31 1987 14:10 | 10 |
| A function f(x) is periodic iff there is a constant p (the period)
such that f(p+x) = f(x) whenever f(x) or f(x+p) is defined.
For example, sin(x) has the period 2*pi, since sin(2*pi+x) = sin(x).
And the function:
f(x) = 0 if x is an even integer, = 1 if x is an odd integer
has a period of 2. Or 4, or -6.
The Gelbaum and Olmsted book mentions that if a non-constant function is
continuous *anywhere*, then it has a unique smallest positive period.
|
736.29 | Finally, wild & wierd functions... | CHOVAX::YOUNG | Back from the Shadows Again, | Sun Aug 02 1987 06:17 | 23 |
| Re .24:
>The book "Counterexamples in Analysis" by Gelbaum and Olmsted (Holden-Day)
>includes a function defined on R (the reals), equal to zero almost everywhere
>and whose range on every nonempty open interval is R.
Sure, we could look it up, but whats the fun of that?
Heres two examples I came up with that have unlimited ranges for
any continous domain:
1) Let the function transform the rationals so that F(x)=y where
'y' is equal to 'x' with the highest prime-power factor of the
denominator exchanged for the highest prime-power factor of the
numerator.
2) If in decimal notation the fractional part of the number 'x'
has no zeroes, then leave it unchanged. If it does have any zeroes
then multiply 'x' by a power of ten sufficient to place the first
zero in the ones place.
-- Barry
|