MathGroup Archive 2002

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

Search the Archive

Re: Mathlink formulas return different results

  • To: mathgroup at
  • Subject: [mg33586] Re: Mathlink formulas return different results
  • From: Jens-Peer Kuska <kuska at>
  • Date: Tue, 2 Apr 2002 03:36:35 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <a81jsn$780$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


can you send me you C-code ?

I'm pretty sure, that it has nothing to do with
MathLink or the definition of a C-called function also
in a template. I have done this serveral times and got
never the effects you describe.


"Lawrence A. Walker Jr." wrote:
> Hi,
> I have created a transistor modeling application that uses Mathlink to
> set up a link between by custom made functions and Mathematica.
> The problem I've been running into is that every time I execute a
> particular function (the C function linked to Mathematica via Mathlink)
> in the Mathematica session, I get three different results using the same
> input!
> I ran into a similar problem before.  I fixed the problem by removing
> from the template file (*.tm) any definitions of functions that I was
> calling from the main function.  For instance, let's say I have a C
> function called foo.  This function calls another function goo.  And I
> define both foo and goo in the template as Foo[] and Goo[].  This setup
> led to the aforementioned problem.  When I removed goo/Goo definitions
> from the template (*.tm) the problem went away.
> I've read Todd Gayley's tutorial on Mathlink.
> This seems like this may be a common problem.  Is there something
> special I should be doing to eliminate this problem?  Does it have some
> to do with 'flushing packets'?
> Thanks,
> Lawrence
> --
> Lawrence A. Walker Jr.

  • Prev by Date: Re: Automatic restart
  • Next by Date: RE: common factors in a matrix
  • Previous by thread: Re: Re: Automatic restart
  • Next by thread: RE: common factors in a matrix