Re: Question about the modulo operator
From: Alain Verghote (alainverghote_at_yahoo.fr)
Date: 09/28/04
- Next message: Gordon Sande: "Re: Question about the modulo operator"
- Previous message: Gabriele Martufi: "Virtual community for the Simulation and the Numerical Modelling "Finite Element Method - Analysis""
- In reply to: bestofcity_at_sbcglobal.net: "Question about the modulo operator"
- Next in thread: Gordon Sande: "Re: Question about the modulo operator"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Gordon Sande: "Re: Question about the modulo operator"
- Previous message: Gabriele Martufi: "Virtual community for the Simulation and the Numerical Modelling "Finite Element Method - Analysis""
- In reply to: bestofcity_at_sbcglobal.net: "Question about the modulo operator"
- Next in thread: Gordon Sande: "Re: Question about the modulo operator"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|