Appendix
A-5: Evaluation
Example A-5.3
The volume of a right circular cone is V=π r2 h/3. If the radius is proportional to the height, and the height is 2, evaluate V at r=α h, then set h = 2 . (This is known as sequential substitution.)
Solution
Maple Solution - Interactive
Control-drag (or type) the equation V=…
Context Panel: Assign Name
V=π r2 h/3→assign
Expression palette: Evaluation template Evaluate V at r=α h.
Context Panel: Evaluate at a Point≻h=2
Vx=a|f(x)r=α h = 13⁢π⁢α2⁢h3→evaluate at point83⁢π⁢α2
The eval command (implemented in the evaluation template) does not support sequential substitution. Sequential substitutions have to be made as separate evaluations.
Maple Solution - Coded
Assign the volume expression to V.
V≔π r2 h/3
Use two eval commands.
evalevalV,r=α h,h=2
The subs command supports sequential replacement from left to right.
subsr=α h,h=2,V
<< Previous Example Section A-5 Next Section of Appendix >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document