tan

Synopsis

$ tan(n)

Calculate the tangent of the argument. (answer in radians)

Parameters

n - the value (converted to a double) to apply this function to.

Returns

A double scalar.

Examples

$value = tan(2); println("tanget of 2 radians is $tanget"); $value = tan(radians(2)); println("tanget of 2 degrees is $tanget");

tanget of 2 radians is tanget of 2 degrees is

See Also