We do not understand how subs works in some cases: we tried the following ginsh session
p=x+1; 1+x subs(p,x==k-1); k subs(p,x==x-1); -1+x subs(p,x==x-2); -1+x subs(p,x==x^2-1); x^2 subs(p,x==x^2); 1+x^2
so, apparently, subs is sometimes wrong. We couldn't find anything in the documentation to explain this fact. Thank you very much. Best wishes Alessandro Zaccagnini Tatiana Zolo purrs developers, at the University of Parma, Italy
Hi! On Thu, Feb 28, 2002 at 11:43:51AM +0100, Tatiana Zolo wrote:
p=x+1; 1+x subs(p,x==x-1); -1+x [...] so, apparently, subs is sometimes wrong.
Indeed. It first substituted x+1 -> (x-1)+1 -> x, and then substituted x again. This is now fixed in CVS. Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/
participants (2)
-
Christian Bauer
-
Tatiana Zolo