1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>CSC Trigonometric Cosecant Function
</TITLE>
</HEAD>
<BODY>
<H2>CSC Trigonometric Cosecant Function
</H2>
<P>
Section: <A HREF=sec_mathfunctions.html> Mathematical Functions </A>
<H3>Usage</H3>
Computes the <code>csc</code> function for its argument. The general
syntax for its use is
<PRE>
y = csc(x)
</PRE>
<P>
where <code>x</code> is an <code>n</code>-dimensional array of numerical type.
Integer types are promoted to the <code>double</code> type prior to
calculation of the <code>csc</code> function. Output <code>y</code> is of the
same size and type as the input <code>x</code>, (unless <code>x</code> is an
integer, in which case <code>y</code> is a <code>double</code> type).
<H3>Function Internals</H3>
Mathematically, the <code>csc</code> function is defined for all arguments
as
<P>
<DIV ALIGN="CENTER">
<IMG SRC="csc_eqn1.png">
</DIV>
<P>
<H3>Example</H3>
The following piece of code plots the real-valued <code>csc(2 pi x)</code>
function over the interval of <code>[-1,1]</code>:
<PRE>
--> t = linspace(-1,1,1000);
--> plot(t,csc(2*pi*t))
--> axis([-1,1,-10,10]);
</PRE>
<P>
<P>
<DIV ALIGN="CENTER">
<IMG SRC="cscplot.png">
</DIV>
<P>
</BODY>
</HTML>
|