Returns the tangent of value in radians
tan(x)
double
Returns: double
In a right angled triangle tan(x) = Opposite / Adjacent. If you want to use degrees instead of radians use function dtan().
dtan()
This function will accept any number except pi/2 plus-minus multiples of pi. In that case the function return error due to returning infinity.
double value; value = tan(5);
This code will set value to -3,380515.
value
Back to number_functions
There was an error while loading. Please reload this page.