Sine function
The sine function is a periodic trigonometric function that maps a real number or angle to a value between −1 and 1.
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.
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
- angleAn angle is a geometric measure of rotational separation between two rays, directions, or vectors sharing a common origin.
- degreesA degree is a unit of angular measurement equal to one three-hundred-sixtieth of a full revolution.
- radianA radian is an angular unit defined by the angle at a circle’s center subtended by an arc whose length equals the circle’s radius.
Related concepts
- mathematical functionkind of · A mathematical function is a mapping that assigns exactly one output to each permitted input in its domain.
- rotationused by · A rotation is a geometric transformation that turns points or objects around a fixed point or axis by an angle while preserving distances and angles.
- positional embeddingused by · A positional embedding is a numerical representation associated with an element’s position in a sequence and incorporated into its representation to convey position or order.
- trigonometrykind of · Trigonometry is the branch of mathematics studying relationships among angles, lengths, geometric ratios, coordinates, and periodic functions.
- cosine functionproduces · The cosine function is a periodic trigonometric function that maps a real number or angle to a value between −1 and 1.
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.


