Concept Framework 2.0 documentation Contents | Index

standard.C.math.sin

Name Version Deprecated
sin version 1.0 no

Prototype:
number sin(number angle)

Parameters:
angle      [in] The angle in radians

Description:
Returns the sine of the specified angle.
The angle must be in radians. Multiply by PI/180 to convert degrees to radians.

Example:
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  

Returns:
Returns the sine of the specified angle.

Documented by Simona Gabriela Plesuvu, generation time: Fri Jan 21 18:06:19 2011 GMT(c)2011 RadGs Software