GHALFSIN

Purpose:

Generates a half sine function in accordance with the specified parameters.

Syntax:

GHALFSIN(N, spacing, tau)

N

-

An integer, the number of points to generate. Defaults to 1000.

spacing

-

A real, the spacing (delta x) between points. Defaults to 1/1000.

tau

-

Optional. A real, the time duration of the non-zero half sin. Defaults to 0.5 seconds.

Returns:

A series.

Example:

W1: ghalfsin()

 

Generates 1000 samples of a half sine sampled at 1000 Hz where the non-zero duration is 0.5 seconds and the total duration is 0.999 seconds.

Example:

W2: ghalfsin(2000, 1/2000, 0.1)

 

Generates 2000 samples of a half sine sampled at 2000 Hz where the non-zero duration is 0.1 seconds and the total duration is 0.9995 seconds.

Remarks:

The half sine function returns values equal to the first half of the period of a sine and zero everywhere else. The function is useful in shock response testing.

 

Tau determines the time duration of the non-zero component of the half sine pulse.

See Also:

GHAVERSIN

GSIN

HAVERSIN

SIN