Re: mathlink and complex number
- To: mathgroup at smc.vnet.net
- Subject: [mg93122] Re: mathlink and complex number
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 27 Oct 2008 03:13:26 -0500 (EST)
- References: <ge14f1$9ft$1@smc.vnet.net>
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 >