Post Reply 
Somewhere between a bug or feature:
12-13-2016, 12:02 AM (This post was last modified: 12-13-2016 12:08 AM by Han.)
Post: #12
RE: Somewhere between a bug or feature:
The where function | and the subst() function handle substitutions differently. The latter will resolve variables (and it would seem only one level deep) prior to substitution whereas the former does the reverse.

x:=a^2+1;
subst(x+1,x=1);
(x+1)|(x=2);
subst(x+1,a=1);
(x+1)|(a=1);

The only exception is the one pointed out by parisse earlier in the thread.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Somewhere between a bug or feature: - DrD - 11-13-2014, 05:52 PM
RE: Somewhere between a bug or feature: - Han - 12-13-2016 12:02 AM



User(s) browsing this thread: 1 Guest(s)