liveBook · Manning

Sinusoidal function

A sinusoidal function is a smooth periodic function whose values vary according to a sine or cosine pattern.

How 2 Manning books explain it

Learn Haskell by Example

A sine wave is a periodic waveform whose value follows the mathematical sine function.

How it is used
Generates periodic audio waveforms for a digital music box.
How deep it goes
Defines the waveform, explains period scanning and frequency, and implements tone generation without developing further mathematics.
Examples
Uses `sin`, `tone sin 220 5`, and concatenated waveform export as concrete examples.
What you can do after
Builds a sine-wave audio signal and exports it as a WAV file.

Read how Learn Haskell by Example explains sinusoidal function →

Building Quantum Software with Python

A sinusoid is a waveform described by a sine or cosine function and characterized by a frequency and phase.

How it is used
Models periodic sound signals and encodes periodic patterns in discrete quantum states.
How deep it goes
Defines amplitude, frequency, phase, and sine-cosine relations, then implements sampled and complex sinusoidal states.
Examples
Uses glass harmonicas, sin(x), sampled cosine values, unit-circle phases, and geometric sequence states.
What you can do after
Build it from scratch using sine, cosine, discrete samples, complex amplitudes, and geometric-sequence state functions.

Read how Building Quantum Software with Python explains sinusoidal 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.