DGS Studio

Sigma / Σ Summation

2D Sine Summation

A five-term sine series, the start of a sawtooth wave.

y = sum(sin(n*x)/n, (n, 1, 5)) draws five sine waves: sin(x) + sin(2x)/2 + … + sin(5x)/5. The amplitudes shrink like 1/n.

Five terms already lean toward a sawtooth. Every term is smooth, so the graph is a continuous curve on the ordinary 2D board.

Equation

y = sum(sin(n*x)/n, (n, 1, 5))

How an explicit graph works

An explicit graph gives y directly from x. Every vertical line meets the curve once, except where the expression is undefined. DGS draws it on the 2D board and, for an ordinary function, can mark intercepts, extrema, and asymptotes without changing the equation you typed.

Domain matters. Square roots and logarithms stop where their inputs are invalid, and rational functions and tangent open a gap at a pole. A slider letter such as a, b, or c is not a second curve. In DGS the lowercase names a, b, and c start at 4, 3, and 5 unless the input assigns them.

Reading the input

Try a change

Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples