12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

186 • Chapter 5: Evaluation and Simplification> y := ln( sin( x * exp(cos(x)) ) );y := ln(sin(x e cos(x) ))> yprime := diff( y, x );yprime := cos(x ecos(x) ) (e cos(x) − x sin(x) e cos(x) )sin(x e cos(x) )Now use the eval command to substitute a value for x in yprime.> eval( yprime, x=2 );cos(2 e cos(2) ) (e cos(2) − 2 sin(2) e cos(2) )sin(2 e cos(2) )The evalf command returns a floating-point approximation of theresult.> evalf( % );−0.1388047428The command makes syntactical substitutions, not mathematical substitutions.This means that you can make substitutions for any subexpression.> subs( cos(x)=3, yprime );cos(x e 3 ) (e 3 − x sin(x) e 3 )sin(x e 3 )But you are limited to subexpressions as Maple identifies them.> expr := a * b * c * a^b;expr := a b c a b> subs( a*b=3, expr );a b c a b

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!