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 elements vertically on circular layouts and produces repeating wave effects.
How deep it goes
Defines sine as a triangle ratio, traces its unit-circle values, and works through CSS and JavaScript positioning calculations.
Examples
Uses a six-item circular menu and a JavaScript vertical-translation wave.
What you can do after
Build it from scratch with CSS for fixed circular menus or JavaScript for variable item counts.

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 →

Also covered in

What to know first

Related concepts

Questions about sine function

What is sine function?

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

Which Manning books explain sine function?

Math for Web Design, Julia as a Second Language and D3.js in Action, Third Edition.

What should I know before learning sine function?

Manning books that teach sine function usually introduce angle, degrees, numeric pi and radian first.

What is sine function a kind of?

Sine function is a kind of mathematical function. A mathematical function is a mapping that assigns exactly one output to each permitted input in its domain.

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.