Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1332

For 4.0, deprecate method name getArgument() and replace with arg()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Won't Do
    • None
    • 4.0
    • None
    • Issue must be moved to NUMBERS.

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            ericbarnhill Eric Barnhill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified