O'Reilly logo

Beginning Pre-Calculus for Game Developers by Boris Meltreger, John P. Flynt

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

Nonlinear Absolute Values

Equations can contain terms that possess exponents and that are also absolute values. The graph of such an equation in some ways resembles the graph of a linear equation that possesses an absolute value because the values you plot for the y axis are all positive, while those you plot for the x axis are both negative and positive. Here is an example of an equation that requires you to plot the absolute value of the cube of x:

y = |x3|

As the graph on the right in Figure 10.13 illustrates, when you do not designate the absolute value of a cube, an equation with a cube can generate negative numbers. This is so because an expression such as –x · –x · –x renders a negative product. The graph of an equation involving a cube ...

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