1. Sine wave

If the sequence x(i) represents the sine wave ,the sinusiodal signal can be generated according to the following equation.

for i=0,1,2,3.....n-1 and where a is amplitude.

φo is the initial phase of signal

f is the frequency in normalized units of cycles/sample.


2. Triangular wave

If the sequence x(i) represents the triangular wave ,the Triangular signal can be generated according to the following equation.

for i=0,1,2,3.....n-1 and where a is amplitude and n is the number of samples.

tri(phase[i]) is defined by following equation



f is the frequency in normalized units of cycles/sample.


3. Square wave

If the sequence x(i) represents the square wave ,the Square signal can be generated according to the following equation.

for i=0,1,2,3.....n-1 and where a is amplitude and n is the number of samples.

square(phase[i]) is defined by following equation

where

duty is duty cycle

f is the frequency in normalized units of cycles/sample.


4. Sawtooth wave

If the sequence x(i) represents the sawtooth wave ,the Sawtooth signal can be generated according to the following equation.

for i=0,1,2,3.....n-1 and where a is amplitude and n is the number of samples.

sawtooth(phase[i]) is defined by following equation

where

f is the frequency in normalized units of cycles/sample.