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

[math][patch] Update UnivariateRealSolverImpl.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: