You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2016/05/29 22:45:12 UTC

[jira] [Commented] (MATH-1332) For 4.0, deprecate method name getArgument() and replace with arg()

    [ https://issues.apache.org/jira/browse/MATH-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306099#comment-15306099 ] 

Gilles commented on MATH-1332:
------------------------------

bq. TBD on the "dev" ML.

Was it?

> 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
>            Reporter: Eric Barnhill
>            Priority: Trivial
>             Fix For: 4.0
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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)