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

[math][patch] Update UnivariateRealSolverImpl.java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      36232

      Description

      Index: UnivariateRealSolverImpl.java
      ===================================================================
      — UnivariateRealSolverImpl.java (revision 233212)
      +++ UnivariateRealSolverImpl.java (working copy)
      @@ -265,7 +265,8 @@
      */
      protected boolean isBracketing(double lower, double upper,
      UnivariateRealFunction f) throws FunctionEvaluationException

      { - return (f.value(lower) * f.value(upper) < 0); + return ((f.value(lower) > 0 && f.value(upper) < 0) || + (f.value(lower) < 0 && f.value(upper) > 0)); }

      /**

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zxg_32@yahoo.com Xiaogang Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: