Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCBB37D75 for ; Tue, 18 Oct 2011 20:39:33 +0000 (UTC) Received: (qmail 1562 invoked by uid 500); 18 Oct 2011 20:39:33 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 1500 invoked by uid 500); 18 Oct 2011 20:39:33 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 1487 invoked by uid 99); 18 Oct 2011 20:39:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 20:39:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 20:39:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 02AF2310D4F for ; Tue, 18 Oct 2011 20:39:12 +0000 (UTC) Date: Tue, 18 Oct 2011 20:39:12 +0000 (UTC) From: "Gilles (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <1518182655.7784.1318970352012.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <525839948.9894.1318525152127.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MATH-690) Remove methods from "MathUtils" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130005#comment-13130005 ] Gilles commented on MATH-690: ----------------------------- Please have a look at revision 1185841. I've implemented "copySign" for "byte" arguments. It can replace the "sign" method; however, the additional functionality comes at the cost of a more complex method that must also check for overflow. Shall I go on and implement "copySign" for the other integral types? Shall I remove "sign"? The "indicator" methods are slightly different: They return -1 or 1 (whereas "sign", and "copySign", can return 0). There is a single use of it in CM (in class "Complex"). Is it safe to remove them, and replace with "copySign"? > Remove methods from "MathUtils" > ------------------------------- > > Key: MATH-690 > URL: https://issues.apache.org/jira/browse/MATH-690 > Project: Commons Math > Issue Type: Task > Reporter: Gilles > Assignee: Gilles > Priority: Trivial > Labels: api-change > Fix For: 3.0 > > > I propose to remove the following methods from "MathUtils": > public static double sign(final double x) > public static float sign(final float x) > public static double sinh(double x) > public static double cosh(double x) > Also, "sign" and "indicator" functions seem redundant (and the "float" and > "double" versions are not dealing correctly with -0.0). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira