Re: Question about the modulo operator

From: Alain Verghote (alainverghote_at_yahoo.fr)
Date: 09/28/04


Date: Tue, 28 Sep 2004 12:24:03 +0000 (UTC)

On Tue, 28 Sep 2004 03:30:02 GMT, bestofcity@sbcglobal.net wrote:
>Greetings,
>
>A few hours ago we discovered that Java allows the use of the modulo
operator
>(%) for floating point numbers. My understanding is that modulo,
 from Gauss'
>time, was defined for natural numbers only (i.e. integers). The
"floating point
>modulo" somehow doesn't seem right. I'm not arguing that the
language should
>have it or not. What I'd like to know is if modulo is defined for
any real
>number or only for natural numbers. If you have a web page with
proof I'll be
>happy to continue the research myself.
>
>This seems wrong because, mathematically, things like:
>
>PI % 2 = 1.14159265....
>
>would not allow reconstruction of PI by doing:
>
>(1.14159265...? + 2*1) == PI.
>
>(I think this means that modulo would not be defined for irrational
numbers).
>
>Can anyone please provide some guidance? Thanks in advance.
>
>P.

Dear Friend,

I believe we must think and 'feel'at distance about mathematical
concepts.
For instance function modulo 2 is just NOT BIJECTIVE like many
others :Abs(x),x^2,homographic ..and any periodical function:
sin(x),frac(x/2) or constant f(x)=c.

Second aspect|INFORMATION :with bijective operators we do not lose
any information 'cause we may get back ,...
Can anyone please provide some guidance? YOU -

C'est la vie,Alain.



Relevant Pages

  • Question about the modulo operator
    ... for floating point numbers. ... My understanding is that modulo, from Gauss' ...
    (sci.math.num-analysis)
  • Re: Question about the modulo operator
    ... > A few hours ago we discovered that Java allows the use of the modulo ... > operator for floating point numbers. ... > modulo, from Gauss' time, was defined for natural numbers only (i.e. ... more general usage of the notion)? ...
    (sci.math.num-analysis)
  • Re: System.Double.Parse not accurate?
    ... which I read the latest floating point value into from the ... XML file, if I modulo it by 1.33, I eventually get 1.33 exact when NewTime ... "Hans Kesting" wrote: ...
    (microsoft.public.dotnet.languages.csharp)