-
-
Notifications
You must be signed in to change notification settings - Fork 18
dtan
Vašek edited this page Jan 13, 2019
·
3 revisions
Returns the tangent of value in degrees
dtan(x)
Argument | Description |
---|---|
double x |
The angle in degrees to tangent |
Returns: double
In a right angled triangle dtan(x)
= Opposite / Adjacent.
If you want to use radians instead of degrees use function tan()
.
This function will accept any number excpept 90 degrees plus-minus multiples of 180. In that case the function return error due to returning infinity.
double value;
value = dtan(0);
This code will set value
to 0.
double value;
value = dtan(-245);
This code will set value
to -2,144507.
Back to number_functions