Package jscicalc.complex

Examples of jscicalc.complex.Complex.scale()


    public OObject function( OObject x ){
  if( x instanceof Complex ){
      Complex c = (Complex)x;
      if( scale != 1 && Math.abs( c.imaginary() ) > 1e-6 )
    throw new RuntimeException( "Error" );
      return c.scale( scale ).sin();
  } else {
      return x.sin( angleType );
  }
    }
View Full Code Here


    public OObject function( OObject x ){
  if( x instanceof Complex ){
      Complex c = (Complex)x;
      if( scale != 1 && StrictMath.abs( c.imaginary() ) > 1e-6 )
    throw new RuntimeException( "Error" );
      return c.scale( scale ).cos();
  } else {
      return x.cos( angleType );
  }
    }
View Full Code Here

    public OObject function( OObject x ){
  if( x instanceof Complex ){
      Complex c = (Complex)x;
      if( scale != 1 && StrictMath.abs( c.imaginary() ) > 1e-6 )
    throw new RuntimeException( "Error" );
      return c.scale( scale ).tan();
  } else {
      return x.tan( angleType );
  }
    }
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.