MathGroup Archive 2001

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

Search the Archive

Re: Differential equations error with MathLink/JLink

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27835] Re: Differential equations error with MathLink/JLink
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Mon, 19 Mar 2001 17:51:16 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <98vh54$8sr@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

and where is the DSolve[] command ????

  ml.evaluate("DSolve[x'[t]==2*x[t]+3,x[t],t]");

will return the solution.
But you have to do much more than this to get 
a useful result in a J/Link program because
Java is not very handy with symbolic expressions :-)

Regards
  Jens


Ralph Gauges wrote:
> 
> Hi,
> 
> I am rather new to mathematica and I have some problems solving
> differential equations using any mathlink product.
> First I tried the python module for mathematica and when that didn't
> work, I tried JLink with the same result.
> The problem is as follows. Whenever I try to specify a differential
> equation like
> 
> x'[t]==2*x[t]+3
> 
> and want this to be evaluated, I get the error message :
> 
> MathLinkException occurred: MLGet out of sequence
> 
> I don't think I made a mistake since I just took the SampleProgram.java
> from the JLink packet and changed one line:
> 
>  //ml.evaluate("2+2");
>  ml.evaluate("x'[t]==2*x[t]+3");
> 
> Other stuff works just fine.
> Has anyone else had these problems before and found a solution?
> Thank you very much for the help
> 
> Ralph


  • Prev by Date: Another problem with FunctionExpand
  • Next by Date: Re: page numbers of cells with celltag
  • Previous by thread: Another problem with FunctionExpand
  • Next by thread: Re: Differential equations error with MathLink/JLink