Package org.jamesii.core.math.complex

Examples of org.jamesii.core.math.complex.ComplexArray1D.multiply()


  public void testMultiplyExceptions() {
    ComplexArray1D a = new ComplexArray1D(new Complex[] { new Complex(1, 1) });

    // testing multiply(int, double, double, double, double)
    try {
      a.multiply(-1, 2d, 3d, 1d, 2d);
      fail();
    } catch (IndexOutOfBoundsException e) {
      assertTrue(true);
    } catch (Exception e) {
      fail();
View Full Code Here


      assertTrue(true);
    } catch (Exception e) {
      fail();
    }
    try {
      a.multiply(5, 5d, 4d, 2d, 1d);
      fail();
    } catch (IndexOutOfBoundsException e) {
      assertTrue(true);
    } catch (Exception e) {
      fail();
View Full Code Here

      fail();
    }

    // testing multiply(int, int, double, double)
    try {
      a.multiply(-1, 0, 1d, 2d);
      fail();
    } catch (IndexOutOfBoundsException e) {
      assertTrue(true);
    } catch (Exception e) {
      fail();
View Full Code Here

      assertTrue(true);
    } catch (Exception e) {
      fail();
    }
    try {
      a.multiply(5, 0, 1d, 1d);
      fail();
    } catch (IndexOutOfBoundsException e) {
      assertTrue(true);
    } catch (Exception e) {
      fail();
View Full Code Here

      assertTrue(true);
    } catch (Exception e) {
      fail();
    }
    try {
      a.multiply(0, -2, 2d, 3d);
      fail();
    } catch (IndexOutOfBoundsException e) {
      assertTrue(true);
    } catch (Exception e) {
      fail();
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.