student
powsubs
substitute for factors of an expression
Calling Sequence
Parameters
Description
Examples
powsubs(eqn, f)
eqn
-
equation s1=s2 specifying the substitution to be made
f
expression with s1 as an algebraic factor of a subexpression
Important: The student package has been deprecated. Use the superseding package Student instead.
The function powsubs differs from subs in that it is defined in terms of algebraic factors rather than in terms of an underlying data structure. Each sub-expression is examined and if s1 occurs as a factor of that sub-expression, the substitution is carried out. However, powsubs cannot find expressions which only occur as part of a sum.
If more than one substitution is specified they are processed in order from left to right. powsubs does not carry out simultaneous substitutions.
The command with(student,powsubs) allows the use of the abbreviated form of this command.
with⁡student:
p≔x+23+1x+2+sin⁡x+2
powsubs⁡x+2=z,p
z3+1z+sin⁡z
q≔sqrt⁡x2+y2+f⁡x2+y2+Int⁡x2+y2,x
q≔x2+y2+f⁡x2+y2+∫x2+y2ⅆx
powsubs⁡x2+y2=z,q
z+f⁡z+∫zⅆx
See Also
algsubs
eval
Student
subs
Download Help Document