Re: Negative Modulus
From: Douglas A. Gwyn (dagwyn_at_comcast.net)
Date: 03/14/04
- Next message: Mxsmanic: "Re: World's largest RAM disk sold to U.S. government"
- Previous message: Gregory G Rose: "Re: World's largest RAM disk sold to U.S. government"
- In reply to: Mok-Kong Shen: "Re: Negative Modulus"
- Next in thread: Rob Warnock: "Re: Negative Modulus"
- Reply: Rob Warnock: "Re: Negative Modulus"
- Reply: Mok-Kong Shen: "Re: Negative Modulus"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 14 Mar 2004 15:45:17 -0500
Mok-Kong Shen wrote:
> Both answers are correct. ...
Actually the real issue is which of the infinite possibilities should be
chosen for "the" answer. For positive modulus m the convention is to
choose the answer in the range [0,m-1]. Since negative moduli are much
less commonly used, any such convention for them is not as well
established. There are probably some technical advantages in one choice
rather than the other; I'm pretty sure Knuth discusses this in Vol. 1 of
TAOCP, but my copy isn't at hand at the moment.
- Next message: Mxsmanic: "Re: World's largest RAM disk sold to U.S. government"
- Previous message: Gregory G Rose: "Re: World's largest RAM disk sold to U.S. government"
- In reply to: Mok-Kong Shen: "Re: Negative Modulus"
- Next in thread: Rob Warnock: "Re: Negative Modulus"
- Reply: Rob Warnock: "Re: Negative Modulus"
- Reply: Mok-Kong Shen: "Re: Negative Modulus"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading