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 2C4CB1036B for ; Fri, 28 Jun 2013 15:33:56 +0000 (UTC) Received: (qmail 32007 invoked by uid 500); 28 Jun 2013 15:33:54 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 31906 invoked by uid 500); 28 Jun 2013 15:33:48 -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 31897 invoked by uid 99); 28 Jun 2013 15:33:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 15:33:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=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.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 15:33:40 +0000 Received: by mail-ie0-f182.google.com with SMTP id s9so4512277iec.13 for ; Fri, 28 Jun 2013 08:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=tXhhl4oyLHyEWBedIbX+KWmB6vZurvYS1RU3JVy7rq4=; b=BvyUaaDMH04EhXhsvdWstssjHVnoXN3oi8X4GzagRFdHabtQNDz9TlDilnpEtovwdq nhB7GbKpc1EH1sxf1gT2+Fppeo77u+nc3l/i53DQq28HqdXkW/CegwPvbffXPJBWw1X8 fLEogr0PN4eF7/0KkxjDj/cTK1mpiUGZiUrLh9A2f6NezhdXNxjR5AKsXp6zkMKwhBt/ INq8LmDAupftqdiQiOLUOOczFjY1M6g/Jjd4aSzWjaa2WKOSe8Ynq4kuwUs8MwjAO/dH Qcb1aAQkG3nR0RUsyV3FzUKRflacKg+cMF/NpBN7Ar5rVd6SwDx8rHai+UHiRqssg041 BDjg== X-Received: by 10.50.130.19 with SMTP id oa19mr4496513igb.18.1372433599976; Fri, 28 Jun 2013 08:33:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.67.1 with HTTP; Fri, 28 Jun 2013 08:32:49 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Fri, 28 Jun 2013 08:32:49 -0700 Message-ID: Subject: Re: [math] On MATH-995: Problems with LegendreGaussQuadrature class. To: Commons Developers List Content-Type: multipart/alternative; boundary=047d7b4182853459d104e03899ea X-Virus-Checked: Checked by ClamAV on apache.org --047d7b4182853459d104e03899ea Content-Type: text/plain; charset=UTF-8 On Fri, Jun 28, 2013 at 8:14 AM, Gilles wrote: > Hello. > > The existing LegendreGaussQuadrature class incorrectly assumes that it has >> converged for functions where the polynomial approximation fails in a >> small >> corner of the integral space. >> >> This situation is handled much better with the AdaptiveQuadrature class in >> the path for MATH-995. This problem should be observable with any >> integral, >> but I observed it with an improper integral. The patch in MATH-995 >> transforms the improper integral to a proper one before applying the >> LegendreGaussQuadrature class (to show how it fails). It also computes the >> same proper integral with the Adaptive method to show the proper behavior. >> > > Please note that CM aims at providing _standard_ algorithms.[1] > > Wikipedia has this general article: > https://en.wikipedia.org/wiki/**Adaptive_quadrature > where it is mentioned that the problem is broken into > * standard quadrature rules, > * logic to subdivide the interval and terminate the algorithm. > > As I explained in the other post we must aim at flexibility. In this > case, that would indeed imply a clean separation, as outlined in the > article referred to above. [This is obviously not the case in your > "AdaptiveQuadrature" class.] > Gilles, This guy is reporting a problem with LGQ and you seem to jump on him for coding style. Isn't the correct response more along the lines of "Hmm.... interesting discrepancy. Need to check on it"? --047d7b4182853459d104e03899ea--