Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: MathLink Help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44460] Re: MathLink Help
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Mon, 10 Nov 2003 19:55:45 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <boig64$ogm$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

remove the ToString[] and read the expression in a
tree (or an other data structure you like) .

Regards
  Jens

Ibrahim El wady wrote:
> 
> Dear Math Group
>   I try connect to Mathmatica using MathLink in Visual C++.
>   When I try execute D[x^2 *Sin[x],x]
> 
> I write
> 
> MLPutFunction(lp, "EvaluatePacket", 1);
>      MLPutFunction(lp, "ToString", 1);
>         MLPutFunction (lp, "ToExpression", 1);
>         MLPutString(lp, "D[x^2 *Sin[x],x]");
> MLEndPacket(lp);
> 
> I receive
> 
>    2\012x  Cos[x] + 2 x Sin[x]
> 
> My question
>   How I understant the result
> 
> Thank you for help


  • Prev by Date: Re: PlotLabel
  • Next by Date: RE: RE: Part 2 of a recent post on Plot ...
  • Previous by thread: MathLink Help
  • Next by thread: Something wrong with this integral (see text)