Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: Arithmetic overflow checking Date: Tue, 26 Jul 2011 03:04:36 -0400 Organization: The Wasteland Lines: 25 Message-ID: References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> <4e262731$0$314$14726298@news.sunsite.dk> <4e26300b$0$309$14726298@news.sunsite.dk> <4e26b4ed$0$2501$db0fefd9@news.zen.co.uk> <4e28097f$0$2533$da0feed9@news.zen.co.uk> <7a23c9d2-508f-4dbd-af91-8cdf2a9764e1@p29g2000pre.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6566 In article , David Lamb wrote: > On 25/07/2011 11:12 AM, Henderson wrote: > > Until some enterprising mathematician thinks up something that can > > be added and multiplied, but has no sensible correspondence to any > > subset of any kind of vectors of real numbers ... > > They're called "Rings": > http://en.wikipedia.org/wiki/Ring_%28mathematics%29 The interface org.jscience.mathematics.structure.Ring represents just such an algebraic structure: Both Complex and Polynomial implement Ring, and there's a an example using Polynomial here: -- John B. Matthews trashgod at gmail dot com