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

No credit card required

CHAPTER 4Odds and Ends

Unlike the other chapters in this book, which are all focused on a single topic, this chapter will introduce a mix of functions that are useful in all sorts of situations.

4.1 Transforming Expressions

Quite often it is useful to put a mathematical expression into a different form. Perhaps looking at the expression in a different way will lend some critical insight. Mathematica has several functions that can help us do this. In Example 4.1.1, we use the Expand function to multiply out a product and name the result poly.

Example 4.1.1

In[15]:=( * expanding a polynomial* )          poly Expand [(1+x)3 (x-2y)]Out[15]= x+3x2+3x3+x4-2y-6xy-6x2y-2x3y

We can perform the opposite of Expand by using the Factor function. In Example ...

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

No credit card required