MathGroup Archive 2003

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

Search the Archive

Re: MathLink Help


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)