-
-
Notifications
You must be signed in to change notification settings - Fork 19
sin
Vašek edited this page Jan 13, 2019
·
11 revisions
Returns the sine of value in radians
sin(x)| Argument | Description |
|---|---|
double x |
The angle in radians to sine |
Returns: double
In a right angled triangle sin(x) = Opposite / Hypotenuse.
If you want to use degrees instead of radians use function dsin().
double x;
double value;
if (sin(x) > 0){
value = 1;
}This code will set value to 1, if the angle x is between 0 and pi radians.
Back to number_functions