Go to the first, previous, next, last section, table of contents.


subst, psubst

subst(rat[,varn,ratn]*)
psubst(rat[,var,rat]*)
:: Substitute ratn for varn in expression rat. (n=1,2,.... Substitution will be done successively from left to right if arguments are repeated.)
return
rational expression
rat,ratn
rational expression
varn
indeterminate
[0] subst(x^3-3*y*x^2+3*y^2*x-y^3,y,2);
x^3-6*x^2+12*x-8
[1] subst(@@,x,-1);
-27
[2] subst(x^3-3*y*x^2+3*y^2*x-y^3,y,2,x,-1);
-27
[3] subst(x*y^3,x,y,y,x);  
x^4
[4] subst(x*y^3,y,x,x,y);    
y^4
[5] subst(x*y^3,x,t,y,x,t,y);
y*x^3
[6] subst(x*sin(x),x,t);
sint(t)*t
[7] psubst(x*sin(x),x,t);
sin(x)*t


Go to the first, previous, next, last section, table of contents.