Bsoft function

bcos

Source:

src/util/trigonometry.c

Description:

Avoid non-zero values for cos(PI/2) and cos(-PI/2).

Algorithm:

	If x is aproximately PI/2, or -PI/2:

return 0
otherwise:
return cos(x)

Arguments:

double xangle in radians.

Returns:

double the cosine of x.

Prototype:

double bcos(double x)

Other objects included:

struct Bcomponent


Generated by bdoc.pl on Wed May 9 11:41:52 2012


Back to the Bsoft home