Package jscicalc.complex

Examples of jscicalc.complex.Complex.divide()


  }
  for( Complex o : statMemoryNeg ){
      d = d.subtract( o );
  }
  if( statSize() > 0 ){
     mean.setValue( d.divide( new Complex( statSize(), 0 ) ) );
  } else {
      mean.setError( true );
   }
  return mean;
    }
View Full Code Here


      //if( d < 0 || statSize() < 2 ){
      if( statSize() < 2 ){
    stDev.setError( true );
    return stDev;
      } else {
    stDev.setValue( d.divide( new Complex( statSize() - 1, 0 ) ).sqrt() );
    return stDev;
      }
  } catch( Exception e ){
      stDev.setError( true );
      return stDev;
View Full Code Here

      //if( d < 0 || statSize() < 1 ){
      if( statSize() < 1 ){
    stDev.setError( true );
    return stDev;
      } else {
    stDev.setValue( d.divide( new Complex( statSize(), 0 ) ).sqrt() );
    return stDev;
      }
  } catch( Exception e ){
      stDev.setError( true );
      return stDev;
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.