FORCOS

 

Langunage type

SubRoutine

FORTRAN

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

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

C/C++

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

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

 

Parameter information

 

Variable Name

Size

Description

x

double

The input variable for the defined Fourier Cosine series.

x0

double

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

w

double

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

upar

double*

Argument list array. This array have to contain coefficient for the Fourier cosine 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