Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

tand

Tangent of argument in degrees

Syntax

Description

example

Y = tand(X) returns the tangent of the elements of X, which are expressed in degrees.

Examples

collapse all

tand(90)
ans =

   Inf

tan(pi/2)
ans =

   1.6331e+16

tand(90) is infinite, whereas tan(pi/2) is large but finite.

z = [180+i 15+2i 10+3i];
y = tand(z)
y =

   0.0000 + 0.0175i   0.2676 + 0.0374i   0.1758 + 0.0539i

Input Arguments

collapse all

Angle in degrees, specified as a real-valued or complex-valued scalar, vector, matrix, or N-D array. The tand operation is element-wise when X is nonscalar.

Data Types: single | double
Complex Number Support: Yes

Output Arguments

collapse all

Tangent of angle, returned as a real-valued or complex-valued scalar, vector, matrix, or N-D array of the same size as X.

More About

collapse all

Tall Array Support

This function fully supports tall arrays. For more information, see Tall Arrays.

See Also

| |

Introduced before R2006a

Was this topic helpful?