Lines Matching refs:Complex

25 import org.apache.commons.math.complex.Complex;
173 * Despite the bracketing condition, the root returned by solve(Complex[],
174 * Complex) may not be a real zero inside [min, max]. For example,
200 * Despite the bracketing condition, the root returned by solve(Complex[],
201 * Complex) may not be a real zero inside [min, max]. For example,
232 Complex c[] = new Complex[coefficients.length];
234 c[i] = new Complex(coefficients[i], 0.0);
236 Complex initial = new Complex(0.5 * (min + max), 0.0);
237 Complex z = solve(c, initial);
244 Complex[] root = solveAll(c, initial);
265 protected boolean isRootOK(double min, double max, Complex z) {
286 public Complex[] solveAll(double coefficients[], double initial) throws
289 Complex c[] = new Complex[coefficients.length];
290 Complex z = new Complex(initial, 0.0);
292 c[i] = new Complex(coefficients[i], 0.0);
311 public Complex[] solveAll(Complex coefficients[], Complex initial) throws
320 Complex c[] = new Complex[n+1]; // coefficients for deflated polynomial
326 Complex root[] = new Complex[n];
328 Complex subarray[] = new Complex[n-i+1];
332 Complex newc = c[n-i];
333 Complex oldc = null;
361 public Complex solve(Complex coefficients[], Complex initial) throws
369 Complex N = new Complex(n, 0.0);
370 Complex N1 = new Complex(n - 1, 0.0);
373 Complex pv = null;
374 Complex dv = null;
375 Complex d2v = null;
376 Complex G = null;
377 Complex G2 = null;
378 Complex H = null;
379 Complex delta = null;
380 Complex denominator = null;
381 Complex z = initial;
382 Complex oldz = new Complex(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);
387 dv = Complex.ZERO;
388 d2v = Complex.ZERO;
394 d2v = d2v.multiply(new Complex(2.0, 0.0));
416 Complex deltaSqrt = delta.sqrt();
417 Complex dplus = G.add(deltaSqrt);
418 Complex dminus = G.subtract(deltaSqrt);
422 if (denominator.equals(new Complex(0.0, 0.0))) {
423 z = z.add(new Complex(absoluteAccuracy, absoluteAccuracy));
424 oldz = new Complex(Double.POSITIVE_INFINITY,