Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2008

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

Search the Archive

Re: mathlink and complex number

  • To: mathgroup at
  • Subject: [mg93122] Re: mathlink and complex number
  • From: Jens-Peer Kuska <kuska at>
  • Date: Mon, 27 Oct 2008 03:13:26 -0500 (EST)
  • References: <ge14f1$9ft$>


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



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