O'Reilly logo

A Physicist's Guide to Mathematica, 2nd Edition by Patrick T. Tam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. The Last Ten Minutes

What follows is a last-minute addendum to Section 2.2.2, as this book goes to press. Trig is an option for the algebraic transformation functions (introduced in Section 2.2.1) except ComplexExpand and PowerExpand. With Trig -> True, these functions attempt to transform trigonometric functions in algebraic manipulations; with Trig -> False, they leave the trigonometric functions unchanged. Trig -> False is the default for these functions except Simplify and FullSimplify whose default is Trig -> True. For example, Apart leaves 2(cos(α) – cos(β)) csc(α) csc(β) unaltered:

In[1]:= Apart[2 (Cos[α]- Cos[β]) Csc[α] Csc[β]]
Out[1]= 2 (Cos[α]- Cos[β]) Csc[α] Csc[β]]

With Trig -> True, Apart rewrites the trigonometric expression: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required