|
From: Eduardo O. <edu...@gm...> - 2025-06-06 20:42:49
|
Ouch! Shame on me!
This works...
setdepends (var,deps) :=
if equal(deps,[]) then (apply('declare,[var,constant]),
apply('remove, [var,dependency]))
elseif equal(deps,[var]) then (apply('remove, [var,constant]),
apply('remove, [var,dependency]))
else (apply('remove, [var,constant]),
apply('depends,[var,deps]))$
setdepends(a,[])$ diff(a); /* 0 */
setdepends(a,[a])$ diff(a); /* del(a) */
setdepends(a,[x,y])$ diff(a); /* a_x dx + a_y dy */
Cheers & thanks,
Eduardo
On Fri, 6 Jun 2025 at 12:56, David Scherfgen <d.s...@go...>
wrote:
> One problem is that many Maxima functions quote some arguments.
>
|