Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E1767E2A for ; Sat, 10 Sep 2011 22:20:46 +0000 (UTC) Received: (qmail 37971 invoked by uid 500); 10 Sep 2011 22:20:46 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 37860 invoked by uid 500); 10 Sep 2011 22:20:45 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 37852 invoked by uid 99); 10 Sep 2011 22:20:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Sep 2011 22:20:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Sep 2011 22:20:38 +0000 Received: by qyg14 with SMTP id 14so1160519qyg.9 for ; Sat, 10 Sep 2011 15:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=CdP8KXvlFMbVaNSKwaSRAc5mw59fwOPKq+RbsIuI9yU=; b=njEgqqMunUkYfRr0Uc62PvhhpG61PdY8RGla25sKTa8pXhtLDarUZ6kau7pSg7FGxW MsXoKukZ4WgTcuLZxAPjdyFA+npLr9MCimIGV8HxHWkJgvwcyrp73CB7yHlNyOZr7DVr g4j8m7hB41CDqhBSwOch3wXXdD3z5s/DAcm8o= Received: by 10.224.9.211 with SMTP id m19mr771527qam.77.1315693218176; Sat, 10 Sep 2011 15:20:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.89.13 with HTTP; Sat, 10 Sep 2011 15:19:58 -0700 (PDT) In-Reply-To: <20110910215127.GO19625@dusk.harfang.homelinux.org> References: <595751345.14537.1315042209838.JavaMail.tomcat@hel.zones.apache.org> <4E624383.5070902@gmail.com> <1315219512.8953.10.camel@knuffelchen> <1315224930.8953.18.camel@knuffelchen> <20110905142136.GT19625@dusk.harfang.homelinux.org> <1315318764.6274.5.camel@knuffelchen> <20110910215127.GO19625@dusk.harfang.homelinux.org> From: Ted Dunning Date: Sat, 10 Sep 2011 15:19:58 -0700 Message-ID: Subject: Re: [Math] Two "Complex" classes? (Was: Re: [math] Complex division) To: Commons Developers List Content-Type: multipart/alternative; boundary=bcaec51a8276e71f0004ac9db273 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51a8276e71f0004ac9db273 Content-Type: text/plain; charset=UTF-8 Sounds great. Especially if the implementation of the sub-class is deferred until the first is completed. On Sat, Sep 10, 2011 at 2:51 PM, Gilles Sadowski < gilles@harfang.homelinux.org> wrote: > Hello. > > Coming back to this with a simple idea that may hopefully satisfy everyone. > > What do you think of having one class that performs all operations by > directly applying the computational formulae, without worrying about NaN > or infinities. This would be represent the complex field, would be simple > and most efficient for general use (not involving limiting cases), would be > documented as "producing undefined results in limiting cases" or "producing > the results expected from direct application of the formulae". The latter > would probably automatically keep track of all combinations of NaNs and > infinities (as seems to be the case in Octave). > > In a subclass of the above one, we would attempt to get a completely > consistent representation of the extended complex numbers (one point at > infinity). It would thus contain all the special handling of the limiting > cases of the current "Complex" class (plus all the missing ones and related > bug fixes). > > > Regards, > Gilles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --bcaec51a8276e71f0004ac9db273--