FORSIN

 

Langunage type

SubRoutine

FORTRAN

call rd_forsin(x, x0, w, upar, npar, order, value, errflg)

or forsin(x, x0, w, upar, npar, order, value, errflg)

C/C++

rd_forsin(x, x0, w, upar, npar, order, &value, &errflg)

or forsin(x, x0, w, upar, npar, order, &value, &errflg)

 

Parameter information

 

Variable Name

Size

Description

x

double

The input variable for the defined Fourier sine series.

x0

double

The x-direction offset for the variable (x) in the Fourier sine series.

w

double

The base frequency for the Fourier sine series (in radians).

upar

double*

Argument list array. This array have to contain coefficient for the Fourier sine series.

npar

int

Number of arguments in the argument list array.

order

int

The order can be 3 values. (order = 0, 1 or 2.)

value

double

1) order = 0

2) order = 1

3) order = 2

errflg

int

Error flag. If the result of this argument is zero, there’s no error