Concept Framework 2.0 documentation | Contents | Index |
Name | Version | Deprecated |
cos | version 1.0 | no |
number cos(number angle) |
angle | [in] The angle in radians |
Returns the cosine of the specified angle.
The angle must be in radians. Multiply by PI/180 to convert degrees to radians. |
import standard.C.math class Main { function Main() { // Evaluate sin(2 * X) = 2 * sin(X) * cos(X). var X = 45; var angle = X * M_PI/180; echo "sin(2 * " + X + ") = " + 2*sin(angle)*cos(angle); } } Results sin(2 * 45) = 1 |
Documented by Simona Gabriela Plesuvu, generation time: Fri Jan 21 18:06:18 2011 GMT | (c)2011 RadGs Software |