Game Development Reference
In-Depth Information
3. Now move to the lower-right panel and locate the X Range fields. Click
the control for the From field and set the value to 10. Click the control
for the To field and set the value to 10. (You can also type the values 10
and 10.)
4. Now locate the Chart panel and set the Zoom values. Click the control for
the X field and set it to 2. Click the control for the Y field and set it to 3.
5. Set the Width field to 2 for Chart 1.
6. Set the two Color fields to red and purple (or darker colors that you can
readily distinguish).
7. Click the picker for the Points field and set the value to 8. The picker sets the
number of points Visual Formula uses to plot graphs. For this operation, it
is essential to set this value to 8.
8. Then click the Chart for Formula 1 button. You see the graph of the sine
function.
Now you proceed to chart the function that is the reciprocal of the sine function.
This is the cosecant function. When you chart the cosecant function, the two
graphs show you that when the value of the sine is 0, the value of the cosecant is
undefined. Refer to Figure 12.22 and follow these steps:
1. Now move to the Visual Formula top menu and click the Trigonometry
menu item. You see the six trigonometric functions. Click the csc item.
2. Click in the lower of the two equation composition areas to position the csc
function.
3. Click the Value menu item. Then click immediately to the right of the csc
function to position the Value field. Type an x in this field.
4. Now find the X Range fields that lie beneath the Chart for Formula 2 button.
Set the From field to 10. Set the To field to 10.
5. Click the Exclude check box. In the From field, type 0.1. In the To field,
type 0.1.
6. Click the Chart for Formula 2 button to generate the graph for the cosecant.
The arms of the graph extend infinitely upward at points at which the sine
values are 0.
Search WWH ::




Custom Search