-
-
Notifications
You must be signed in to change notification settings - Fork 18
dcos
Vašek edited this page Jan 13, 2019
·
4 revisions
Returns the cosine of value in degrees
dcos(x)
Argument | Description |
---|---|
double x |
The angle in degrees to cosine |
Returns: double
In a right angled triangle dcos(x)
= Adjacent / Hypotenuse.
If you want to use radians instead of degrees use function cos()
.
double value;
value = dcos(-90);
This code will set value
to 0.
double value;
value = dcos(320);
This code will set value
to 0,766045.
Back to number_functions