MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: mathlink and complex number


Hi,

int n;
complex c;
If(MLGetFunction(stdlink,"Complex",&n) && 2==n){
   double re,im;
   MLGetDouble(stdlink,&re);
   MLGetDouble(stdlink,&im);
   c=complex(re,im);
  }

??

Regards
   Jens

streaming wrote:
> Hi all,
>       I'm using mathlink to communicate between C and Mathematica.
> 
> I wish to know how to get the complex number output(in C) from a mathematica function.
> 
> The mathematica function "SpheroidalS1" gets integer and float inputs,
> i wish to know how to retrieve the complex number output of this function in my external C program.
> 
> Thanks
> 


  • Prev by Date: Re: PrintTemporary
  • Next by Date: Re: notation using # with exponents and &
  • Previous by thread: mathlink and complex number
  • Next by thread: Re: mathlink and complex number