Package org.jamesii.core.math.complex

Examples of org.jamesii.core.math.complex.Complex.doubleValue()


  }

  /** Tests the {@link Complex#doubleValue()} method. */
  public void testDoubleValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
    assertEquals(c.doubleValue(), c.getReal());
  }

  /** Tests the {@link Complex#floatValue()} method. */
  public void testFloatValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
 
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.