From: hidders@REMOVE.THIS.win.tue.nl (Jan Hidders)
Newsgroups: comp.databases.theory
Subject: Re: Clean Object Class Design -- Circle/Ellipse
Followup-To: comp.databases.theory
Date: 8 Aug 2001 12:53:10 GMT
Organization: Eindhoven University of Technology
Lines: 52
Message-ID: <9krcnm$m3f$1@news.tue.nl>
References: <9hqjpq$it8$0@dosa.alt.net> <7MUb7.1661$NJ6.5968@www.newsranger.com> <2r_b7.2149$NJ6.9164@www.newsranger.com> <9kr065$lq$1@news.tue.nl>
Reply-To: hidders@win.tue.nl (Jan Hidders)
NNTP-Posting-Host: svis02.win.tue.nl
X-Newsreader: trn 4.0-test74 (May 26, 2000)
Originator: hidders@win.tue.nl (Jan Hidders)


Jan Hidders wrote:
> Vadim Tropashko  wrote:
> > In article <7MUb7.1661$NJ6.5968@www.newsranger.com>, Mikito
> > Harakiri says...
> > >Jan Hidders wrote:
> > >>
> > >>Well, let's see, it should hold for all Reals x, y that,
> > >>
> > >>  floor(x) I+ floor(y) = floor(x R+ y)
> > >>
> > >>Yes, it holds, so they could, if this is your only operator. :-)
> > >
> > >You mean '+' is my only operator? I see that I can't make it
> > >
> > >floor(x) I* floor(y) <==> floor(x R* y)
> > >
> > It doesn't hold for '+' either.
> > 
> > floor(1.9) I+ floor(1.9) = 2
> > 
> > while
> > 
> > floor(1.9+1.9) = 3
> 
> Oh dear, you are right. Thanks for the correction. It also does not
> work for round():
> 
>   round(1.5) I+ round(1.5) = 4,    but
> 
>   round(1.5 R+ 1.5) = 3
> 
> In fact, it can be shown that such a mapping cannot exist. It holds
> that the mapping maps the integer Reals to the corresponding Integer
> and it should also hold that
> 
>   f(1/2) I+ f(1/2) = f(1/2 R+ 1/2) = f(1) = 1.
> 
> So f(1/2) should be an integer x such that x + x = 1.

Hm. This is not really correct because it is not necessarily true that
f(1.0) = 1. But if you assume that f(1.0) = a then

  f(1/a) I+ ... I+ f(1/a) { a times } = f(1/a R+ ... R+ 1/a) = f(1) = a

from which it follows that f(1/a) = 1. So it holds that

  f(1/2a) I+ f(1/2a) = f(1/2a R+ 1/2a) = f(1/a) = 1

so f(1/2a) should be an integer x such that x + x = 1.

-- 
  Jan Hidders

