references/sleep-functions/tan.md

GitHub

tan

Category: Math

Source: https://sleep.dashnine.org/manual/tan.html


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

Example:

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

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

Output:

tanget of 2 radians is
tanget of 2 degrees is

See Also

&acos; &asin; &atan; &atan2; &cos; &sin