Exemplo n.º 1
0
CAMLprim value ml_gsl_complex_pow_real(value Z, value X)
{
  _DECLARE_COMPLEX2(Z, temp);
  _CONVERT_COMPLEX(Z);
  z_temp = gsl_complex_pow_real(z_Z, Double_val(X));
  return copy_complex(&z_temp);
}
Exemplo n.º 2
0
 /** Complex number to the x real order
 \ingroup complex
 \param[in] z Complex number
 \param[in] x Real number
 \return \f$ z^x \f$ */
 complex pow(const complex& z, const double  x)
 {
   return complex(gsl_complex_pow_real(z.as_gsl_type(), x));
 }