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

Add MathUtils method to check equality given some error bounds

Rank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

      Attachments

        1. MathUtils.java.patch
          0.8 kB
          Benjamin McCann
        2. MathUtilsTest.java.patch
          0.8 kB
          Benjamin McCann
        3. compareTo.patch
          2 kB
          Benjamin McCann

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            luc Luc Maisonobe
            bmccann Benjamin McCann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment