Page 258 - Learn to Program - Basic-256
P. 258
Chapter 16: Mathematics – More Fun With Numbers. Page 242
Cosine:
A cosine is the ratio of the length of the adjacent leg over the length of the
b
hypotenuse cos A= . The cosine repeats itself every 2p radians and has a
c
range from -1 to 1. Illustration 24 graphs a cosine wave from 0 to 2p radians.
Illustration 25: Cos() Function
Sine:
a
The sine is the ratio of the opposite leg over the hypotenuse sin A= . The
c
sine repeats itself every 2p radians and has a range from -1 to 1. You have
seen diagrams of sine waves in Chapter 3 as music was discussed.
Illustration 26: Sin() Function
© 2019 James M. Reneau (CC BY-NC-SA 3.0 US)

