liveBook · Manning

Sine function

The sine function is a periodic trigonometric function that maps a real number or angle to a value between −1 and 1.

How 3 Manning books explain it

Math for Web Design

sin() is a CSS mathematical function that returns the sine of an angle.

How it is used
Positions vertical coordinates on circles and drives repeating wave effects in frontend layouts and animations.
How deep it goes
Defines sine through right triangles and unit-circle coordinates, then applies it to CSS and JavaScript circular positioning.
Examples
Demonstrates radial menus with Math.sin() and CSS sin(), alongside wave-pattern uses.
What you can do after
Apply it via CSS sin() or Math.sin() to calculate vertical circle positions and repeating wave offsets.

Read how Math for Web Design explains sine function →

Julia as a Second Language

sin is Julia's built-in function for computing the sine of an angle or numeric value.

How it is used
Uses sine for interactive mathematical evaluation, navigation-related angle calculations, and demonstrating programmable numerical approximation.
How deep it goes
Explains the triangle definition and Taylor-series approximation, then implements and compares a finite-loop version without proving the mathematics.
Examples
Demonstrates lighthouse navigation, REPL evaluation, a custom Taylor-series function, and comparisons with built-in `sin`.
What you can do after
Apply it via Julia's `sin` function, or build an approximate implementation with loops and Taylor-series terms.

Read how Julia as a Second Language explains sine function →

D3.js in Action, Third Edition

Sine is a trigonometric function that gives the ratio of the opposite side to the hypotenuse in a right triangle.

How it is used
Positions radial SVG axis endpoints from their angles and circle radius.
How deep it goes
Explains the right-triangle ratio and applies it in Svelte code, without developing broader trigonometric theory.
Examples
Uses February’s axis and twelve month axes as concrete radial-chart examples.
What you can do after
Build it from scratch by calculating and rendering radial SVG endpoints from angles and a radius.

Read how D3.js in Action, Third Edition explains sine function →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.