student(deprecated)/powsubs - Maple Help

student

 powsubs
 substitute for factors of an expression

 Calling Sequence powsubs(eqn, f)

Parameters

 eqn - equation $\mathrm{s1}=\mathrm{s2}$ specifying the substitution to be made f - expression with $\mathrm{s1}$ as an algebraic factor of a subexpression

Description

 • 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 $\mathrm{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.

Examples

Important: The student package has been deprecated. Use the superseding package Student instead.

 > $\mathrm{with}\left(\mathrm{student}\right):$
 > $p≔{\left(x+2\right)}^{3}+\frac{1}{x+2}+\mathrm{sin}\left(x+2\right)$
 ${p}{≔}{\left({x}{+}{2}\right)}^{{3}}{+}\frac{{1}}{{x}{+}{2}}{+}{\mathrm{sin}}{}\left({x}{+}{2}\right)$ (1)
 > $\mathrm{powsubs}\left(x+2=z,p\right)$
 ${{z}}^{{3}}{+}\frac{{1}}{{z}}{+}{\mathrm{sin}}{}\left({z}\right)$ (2)
 > $q≔\mathrm{sqrt}\left({x}^{2}+{y}^{2}\right)+f\left({x}^{2}+{y}^{2}\right)+\mathrm{Int}\left({x}^{2}+{y}^{2},x\right)$
 ${q}{≔}\sqrt{{{x}}^{{2}}{+}{{y}}^{{2}}}{+}{f}{}\left({{x}}^{{2}}{+}{{y}}^{{2}}\right){+}{\int }\left({{x}}^{{2}}{+}{{y}}^{{2}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}$ (3)
 > $\mathrm{powsubs}\left({x}^{2}+{y}^{2}=z,q\right)$
 $\sqrt{{z}}{+}{f}{}\left({z}\right){+}{\int }{z}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}$ (4)