pow method

MathValue pow(
  1. dynamic y
)

Implementation

MathValue pow( y ){
	type();
	if( y is MathValue ){
		if( _type == ClipMath.valueTypeComplex ) return complexToValue( _c.pow( y._tmpComplex() ) );
		if( _type == ClipMath.valueTypeFract   ) return fractToValue  ( _f.pow( y._tmpFract  () ) );
		return fractToValue( _tmpFract().pow( y._tmpFract() ) );
	}
	double yy = y;
	if( _type == ClipMath.valueTypeComplex ) return complexToValue( _c.pow( yy ) );
	if( _type == ClipMath.valueTypeFract   ) return fractToValue  ( _f.pow( yy ) );
	return fractToValue( _tmpFract().pow( yy ) );
}