fcos(var x, var f)

Cosine function, multiplied by the factor f. Faster and more precise than calculating f * cos(x) explicitely.

Parameters:

x - angle in degrees.
f  - scale factor.

Returns:

f * cos(x)

Speed:

Fast

Example:

x = fcos(90, 10); // x is 0
x = fcos(45, 1000); // x is 707.106 

See also:

facos, cos, fsin