fabs method
Implementation
double fabs(){
if( _re == 0.0 ){
return ClipMath.abs( _im );
}
if( _im == 0.0 ){
return ClipMath.abs( _re );
}
if( ClipMath.abs( _re ) < ClipMath.abs( _im ) ){
double t = _re / _im;
return ClipMath.abs( _im ) * ClipMath.sqrt( 1.0 + t * t );
}
double t = _im / _re;
return ClipMath.abs( _re ) * ClipMath.sqrt( 1.0 + t * t );
}