commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barnhill (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MATH-1332) For 4.0, deprecate method name getArgument() and replace with arg()
Date Sun, 06 Mar 2016 16:23:40 GMT
Eric Barnhill created MATH-1332:
-----------------------------------

             Summary: For 4.0, deprecate method name getArgument() and replace with arg()
                 Key: MATH-1332
                 URL: https://issues.apache.org/jira/browse/MATH-1332
             Project: Commons Math
          Issue Type: Improvement
    Affects Versions: 4.0
            Reporter: Eric Barnhill
            Priority: Trivial


Currently magnitude of complex is returned by calling abs while phase angle is returned by
calling getArgument(). I propose deprecating getArgument and using arg() because:

-- it's not really an accessor method since the argument is computed
-- arg() is shorter, more elegant and similar to abs() with which its usage will sometimes
be paired



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message