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.

32 • Chapter 2: Mathematics with Maple: the Basicsexpr :=cos(x) 5 + sin(x) 4 + 2 cos(x) 2 − 2 sin(x) 2 − cos(2 x)> simplify(expr);cos(x) 4 (cos(x) + 1)To perform only a certain type of simplification, specify the type youwant.> simplify(sin(x)^2 + ln(2*y) + cos(x)^2);1 + ln(2) + ln(y)> simplify(sin(x)^2 + ln(2*y) + cos(x)^2, ’trig’);1 + ln(2 y)> simplify(sin(x)^2 + ln(2*y) + cos(x)^2, ’ln’);sin(x) 2 + ln(2) + ln(y) + cos(x) 2With the side relations feature, you can apply your own simplificationrules.> siderel := {sin(x)^2 + cos(x)^2 = 1};siderel := {sin(x) 2 + cos(x) 2 = 1}> trig_expr := sin(x)^3 - sin(x)*cos(x)^2 + 3*cos(x)^3;trig_expr := sin(x) 3 − sin(x) cos(x) 2 + 3 cos(x) 3> simplify(trig_expr, siderel);2 sin(x) 3 − 3 cos(x) sin(x) 2 + 3 cos(x) − sin(x)

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

Saved successfully!

Ooh no, something went wrong!