log method
Implementation
MathComplex log(){
if( _im == 0.0 ){
if( _re <= 0.0 ){
if( ClipMath.complexIsReal() ){
ClipMath.setComplexError();
return floatToComplex( ClipMath.log( _re ) );
}
} else {
return floatToComplex( ClipMath.log( _re ) );
}
}
return MathComplex(
ClipMath.log( fabs() ),
ClipMath.atan2( _im, _re )
);
}