|
From: Eli D. <pu...@el...> - 2020-07-07 03:42:02
|
Hello. The substitution functions (subst, sublis) are not substituting
for all occurrences of the symbol to be substituted for. My guess is
that it has something to do with the symbol occurring inside a Lisp
function call. For example,
(%i1) sublis([n=3],print("f(n)","=",f(n)));
f(n) = f(n)
(%o1) f(3)
It works fine when there isn't a Lips function call in between the
substitution function and the n. For example,
(%i2) print("f(n)","=",sublis([n=3],f(n)));
f(n) = f(3)
(%o2) f(3)
Is this supposed to happen? And is there a setting to change it? Thanks, Eli
|