MathGroup Archive 2008

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

Search the Archive

Re: mathlink and complex number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93133] Re: mathlink and complex number
  • From: ragfield <ragfield at gmail.com>
  • Date: Tue, 28 Oct 2008 04:53:32 -0500 (EST)
  • References: <ge14f1$9ft$1@smc.vnet.net>

On Oct 26, 1:58 am, streaming <streamingl... at gmail.com> 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 mathemat=
ica 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.

Complex numbers in Mathematica (and MathLink) are represented with the
FullForm:

Complex[re_Real, im_Real]

(a function whose Head is the symbol Complex, and has length 2 where
each part is a Real).

-Rob


  • Prev by Date: Manipulate question
  • Next by Date: Is there a way to make Mathematica commands and functions
  • Previous by thread: Re: mathlink and complex number
  • Next by thread: Solving systems of eqs involving Integrations over product of