Documentation Center

  • Trial Software
  • Product Updates

cscd

Cosecant of argument in degrees

Syntax

Description

example

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

Examples

expand all

Cosecant of 180 degrees compared to cosecant of π radians

cscd(180) is infinite, whereas csc(pi) is large but finite.

cscd(180)
ans =

   Inf
csc(pi)
ans =

   8.1656e+15

Cosecant of vector of complex angles, specified in degrees

z = [35+i 15+2i 10+3i];
y = cscd(z)
y =

   1.7421 - 0.0434i   3.7970 - 0.4944i   5.2857 - 1.5681i

Input Arguments

expand all

X — Angle in degreesscalar value | vector | matrix | N-D array

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

Data Types: single | double
Complex Number Support: Yes

Output Arguments

expand all

Y — Cosecant of anglescalar value | vector | matrix | N-D array

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

See Also

| |

Was this topic helpful?