| Concept Framework 2.2 documentation | Contents | Index |
| Name | Version | Deprecated |
| sin | version 1.0 | no |
| number sin(number angle) |
| angle | [in] The angle in radians |
|
Returns the sine 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: Sun Jan 27 18:15:14 2013 GMT | (c)2013 Devronium Applications |