The cos function operates on REAL or COMPLEX arguments only.
The cos function takes a REAL or COMPLEX argument ( an angle in radians ) and returns the value of cosine for that argument.
Where x is a REAL or COMPLEX argument that contains a value for an angle in radian form.
There are no optional arguments.
To use this function, just do something similar to the following:
x = 60
pi = 3.1415926
x = x/180*pi ( remember, the angle must be in radians )
x = cos(x)
Naturally in this example the value of x will be 0.5. Please note that the variable that the function returns its value to does not have to be the same argument that was passed to it.
lecture seven, and twenty nine
examples fall2.f, trapeziod.f
Written by Jason Wehr : firstname.lastname@example.org and Maintained by John Mahaffy : email@example.com