SHF

 

Langunage type

SubRoutine

FORTRAN

call rd_shf(x, x0, a, w, phi, b, order, value, errflg)

or shf(x, x0, a, w, phi, b, order, value, errflg)

C/C++

rd_shf(x, x0, a, w, phi, b, order, &value, &errflg)

or shf(x, x0, a, w, phi, b, order, &value, &errflg)

 

Parameter information

 

Variable Name

Size

Description

x

double

Independent variable in the function.

x0

double

Offset in the independent variable x.

a

double

Amplitude of the harmonic function.

w 

double

The frequency of the harmonic function.

phi 

double

Phase shift in the harmonic function.

b

double

Average displacement of the harmonic function.

order

int

1) order = 0

 

2) order = 1

3) order = 2

value

double

errflg

logical

If an error is encountered in invoking Predefined subroutine, this variable becomes true. This variable must be declared as a logical variable.