Package org.apache.commons.math.analysis

Examples of org.apache.commons.math.analysis.UnivariateRealSolver.solve()


                double sign = Math.signum(f.value(x[0]));
                for (int i = 1; i < n; i++) {
                    double isig = Math.signum(f.value(x[i]));
                    if (isig != sign) {
                        zeros.add(solver.solve(x[i - 1], x[i]));
                        sign = isig;
                    }
                }
            }
            return zeros;
View Full Code Here


                  }
              }
          });
          solver.setAbsoluteAccuracy(convergence);
          solver.setMaximalIterationCount(maxIterationCount);
          double root = solver.solve(ta, tb);
          if (Double.isNaN(previousEventTime) || (Math.abs(previousEventTime - root) > convergence)) {
              pendingEventTime = root;
              if (pendingEvent && (Math.abs(t1 - pendingEventTime) <= convergence)) {
                  // we were already waiting for this event which was
                  // found during a previous call for a step that was
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.