Re: Interesting code
- From: August Karlstrom <fusionfive@xxxxxxxxx>
- Date: Sat, 25 Nov 2006 11:11:49 GMT
Dik T. Winter skrev:
In article <Si19h.24031$E02.9405@xxxxxxxxxxxxxxx> August Karlstrom <fusionfive@xxxxxxxxx> writes:
...
> Mathematics Pascal/Modula/Oberon C
> x = y x equals y x equals y x becomes y
> 1/2 0.5 0.5 0
The second line is incorrect for Mathematics if you are not working in
the reals.
Well, it's just as valid for the rational numbers (Q is a field).
In the ring of integers, division is not defined for every number (not every integer has a multiplicative inverse).
August
--
"Programming languages like C make people really believe that one half equals zero." -- A. Karlstrom
.
- Follow-Ups:
- Re: Interesting code
- From: Dik T. Winter
- Re: Interesting code
- References:
- Re: Interesting code
- From: August Karlstrom
- Re: Interesting code
- From: Richard Bos
- Re: Interesting code
- From: August Karlstrom
- Re: Interesting code
- From: Dik T. Winter
- Re: Interesting code
- Prev by Date: Re: scanf behaviour
- Next by Date: Re: printing a pointer
- Previous by thread: Re: Interesting code
- Next by thread: Re: Interesting code
- Index(es):
Relevant Pages
|