From: "Krishnaswami, Neel" <neelk@cswcasa.com>
To: "'caml-list@inria.fr'" <caml-list@inria.fr>
Subject: Re: [Caml-list] Integer arithmetic: mod
Date: Mon, 19 Nov 2001 11:39:07 -0500 [thread overview]
Message-ID: <B1E4D3274D57D411BE8400D0B783FF32A8D5E9@exchange1.cswv.com> (raw)
Xavier Leroy [mailto:xavier.leroy@inria.fr] wrote:
>
> I'm favorable to providing proper Euclidean division and modulus as
> library functions. The way I learned Euclidean division in college
> is that the quotient q and the modulus r of a divided by b are
> defined by
>
> a = b * q + r with 0 <= r < |b|
>
> Any mathematician on this list who could look it up in Bourbaki?
I haven't checked Bourbaki, but this is my understanding as well.
There's also a paper on the subject in the ACM TOPLAS from 1992.
"The Euclidean definition of the functions div and mod", by Raymond
Boute:
http://portal.acm.org/citation.cfm?id=128862&coll=portal&dl=ACM&CFID=745503&
CFTOKEN=75650609#FullText
--
Neel Krishnaswami
neelk@cswcasa.com
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next reply other threads:[~2001-11-19 16:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-19 16:39 Krishnaswami, Neel [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-11-09 10:30 Edmund GRIMLEY EVANS
2001-11-19 15:49 ` Xavier Leroy
2001-11-19 16:48 ` Vesa Karvonen
2001-08-06 13:23 Dave Berry
[not found] <9khicj$3n3$1@qrnik.zagroda>
2001-08-04 20:25 ` Marcin 'Qrczak' Kowalczyk
2001-08-05 8:05 ` Chris Hecker
2001-08-06 1:06 ` John Gerard Malecki
2001-08-04 10:49 Kai Kaminski
2001-08-04 18:48 ` Chris Hecker
2001-08-05 23:35 ` John Max Skaller
2001-08-10 22:10 ` Kai Kaminski
2001-08-06 9:10 ` Xavier Leroy
2001-08-10 22:29 ` Kai Kaminski
2001-08-13 15:21 ` Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B1E4D3274D57D411BE8400D0B783FF32A8D5E9@exchange1.cswv.com \
--to=neelk@cswcasa.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox