From user-return-26014-apmail-commons-user-archive=commons.apache.org@commons.apache.org Wed Apr 20 09:26:52 2011 Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E0CF1D9C for ; Wed, 20 Apr 2011 09:26:52 +0000 (UTC) Received: (qmail 2043 invoked by uid 500); 20 Apr 2011 09:26:51 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 1634 invoked by uid 500); 20 Apr 2011 09:26:45 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 1538 invoked by uid 99); 20 Apr 2011 09:26:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 09:26:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nfortescue@gmail.com designates 209.85.210.43 as permitted sender) Received: from [209.85.210.43] (HELO mail-pz0-f43.google.com) (209.85.210.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 09:26:38 +0000 Received: by pzk1 with SMTP id 1so301393pzk.30 for ; Wed, 20 Apr 2011 02:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=vZplxpyktmVNfOuhmdni/QaGIcYfvlUM3SrLArro7tg=; b=dI5+NQotcGtMPIxW8Hfty6O3Uu9pEoyaJ/kz73Gl3VXriaDnpK9iZWua2KZfegUckp C5T4xlTcl4IcOOxhBY5bNSSWerMpM9QkbT5p1JJXBPTFkAfeXcSb0h/rb9LqNAWITtFp LWtXrCNyptaCL3J3yRUp6A835CVsljYTIbHQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=wwoZ71YVydKa9f1zXLXOAYSSJbKmjNP6VtZCICtiURAzWQoEk8aKUUwezQpdTf2gn2 RZIZKpUb7WgAEjYRgwn8VidCQiKQP6rA1nN+VQqXZKMTAAac0iHlr+OxlEQ5NsmVkn7N AWPBIozuv3DfEHXqspBVcsDpH3xUwu73ahmqs= Received: by 10.68.34.39 with SMTP id w7mr10613172pbi.106.1303291578044; Wed, 20 Apr 2011 02:26:18 -0700 (PDT) MIME-Version: 1.0 Sender: nfortescue@gmail.com Received: by 10.68.62.131 with HTTP; Wed, 20 Apr 2011 02:25:58 -0700 (PDT) From: Nick Fortescue Date: Wed, 20 Apr 2011 10:25:58 +0100 X-Google-Sender-Auth: KLby2-nkO270nrUS42yckdLEmhY Message-ID: Subject: [math] MullerSolver() empty constructor deprecated. Replacement? To: user@commons.apache.org Content-Type: text/plain; charset=ISO-8859-1 MullerSolver() and other Univariate solvers (NewtonSolver, SecantSolver) have had their no argument constructor deprecated. In the deprecation comment it says "to be removed in 3.0". I can see no mention in the javadocs for commons-math 2.2 or 3.0 of any replacement mechanism for constructing, and the method still exists in the 3.0 javadoc. I can think of 4 possibilities: 1) The deprecation of this method was a mistake and added at the same time as the constructor which took a function. 2) The proposal is that construction be moved to a factory class, but the Factory class has not been added yet. 3) There is an alternative way of constructing a MullerSolver I haven't found yet. 4) Deprecation has been decided with no migration route yet decided upon. Can anyone tell me which of these is correct, or a fifth option, and tell me how code which uses "new MullerSolver()" should be changed? I really hope it isn't 4! My guess is 2, as SecantSolver has UnivariateRealSolverFactoryImpl.newSecantColver(). While I might disagree with this design (force the use of the Factory) at least there is the hope of migration. Nick --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org