O'Reilly logo

Clojure for Finance by Timothy Washington

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

A sine wave

A sine is a trigonometric function of an angle of a right triangle. The sine (of an angle) is the ratio of the opposite side's length to the length of the hypotenuse (the longest side of the triangle).

A sine wave is a repetitive oscillating graph of the sine function. Therefore, as the function of the angle changes (usually by a clockwise rotation of the hypotenuse), the resulting y value follows. It provides a natural upward and downward wave that we're looking for:

A sine wave

It's specific equation is as follows. Let's take a closer look at it and its derivation:

f(x) = a sin (b(x − c)) + d

y = a sin (b(x − c)) + d

y = a sin (b(x − Pi/2)) + d

The ...

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