Calling Maxima $diff from java



Rupert Swarbrick <rswarbrick at gmail.com> writes:
>> Hello Rupert.
>>
>> I tried to find a way to tell the interpreter "I" to switch packages
>> as you suggested, but to no avail. I am including the complete
>> program here for any one who would like to kindly help with finding
>> why the program does not return the desired result.
>
> Dear Mohamed,
>
> I am not an ABCL user, nor am I more than semi-competent at programming
> in Java, so I'm unlikely to be able to help here. What I'm telling you
> is that your interpreter is reading things in the wrong package and
> that's why your example is failing to work.
>
> You could try doing something I.eval("(in-package :maxima)). Maybe that
> will work. If not, you should probably ask someone on an ABCL list for
> help.

Sigh. Or you could look at their examples, it seems. See

  http://trac.common-lisp.net/armedbear/browser/trunk/abcl/examples/java-to-lisp-2/Main.java

which sets the package on line 49. Right, I'm not going to spend any
more time thinking about this problem.

Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20130331/f4d27438/attachment.pgp>;