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

Using Visual Formula

To become acquainted with the appearance of rational and irrational numbers, use Visual Formula to perform a few divisions that result in different types of numbers. Here are a few divisions to perform:

  1. 1/2

  2. 1/3

  3. 2/4

  4. 4/3

  5. 1/17

  6. 21/1

  7. 0/6

  8. 7/3

  9. 1/7

  10. 5/5

When you use Visual Formula to perform these divisions, one way to proceed involves creating a ratio with fields you program to receive variable values equivalent to the two numbers making up the ratio. Figure 2.7 illustrates how Visual Formula appears after you set up the ratio. Here are the steps you take to create it:

  1. Click the Quotient menu item in the top menu list Visual Formula provides. Then click in the upper equation composition area to position the quotient bar.

  2. Click the Value field ...

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