Mohamed Rayes <rayes.o.mohamed at gmail.com> writes:
> Interpreter I = Interpreter.createInstance ();
>
> I.eval ("(require 'asdf)");
>
> I.eval ("(asdf:operate 'asdf:load-op :maxima)");
>
> Package P = Packages.findPackage ("MAXIMA");
>
> Symbol S = P.findAccessibleSymbol ("$DIFF");
>
> Function F = (Function) S.getSymbolFunction ();
>
> does indeed find the function $DIFF, but the statements
>
> LispObject exp = I.eval("'(%SIN) $x)");
>
> LispObject x = I.eval("'$x");
>
> LispObject result = F.execute(exp,p);
>
> return
>
> ((%DERIVATIVE SIMP) ((%SIN) $X) $X 1)
> instead of
>
> ((%cos simp) $x)?
Yes. See my previous message, which explains what you got wrong.
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/20130326/847dd99e/attachment-0001.pgp>