Go to: Return value. Related commands. Examples.

Synopsis

tan <float>

Returns the tangent of the given value.

Also available:
atan : Returns the arc tangent in the range -PI/2 to PI/2.
atan2(x,y) : Returns the arc tangent of y/x in the range -PI to PI.
tanh : Hyperbolic function.
atanh : Inverse hyperbolic function.
tand : Returns value in degrees.
atand : Returns value in degrees.
atan2d : Returns value in degrees.

Return value

float

Related commands

sin, cos

Examples

 
	tand 45;
	// Result: 1 //
	atan 1;
	// Result: 0.785398 //