O'Reilly logo

Mathematica Demystified by Jim Hoste

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

CHAPTER 8Solving Equations

Many problems in mathematics ultimately boil down to solving an equation, or system of equations. Mathematica has a variety of tools for solving equations, which we’ll learn about in this chapter.

8.1 Polynomial Equations

Let’s start by solving a simple quadratic equation, x2 + 3x - 5=0. Example 8.1.1 shows how to use the function Solve to do this.

Example 8.1.1

In[1]:= (* solving a polynomial equation *)        Solve[x2 + 3x −5=0, x]

Image

Solve takes two arguments. The first is the equation we want to solve and the second is the variable that we want to solve for. Notice that we have used double equal signs in the equation. ...

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