csc

From DavinciWiki
Jump to: navigation, search

Description

Computes the trigonometric cosecant of the input value.

Arguments and Return Values

Parameters: An array of any numeric data type or organization containing the values of angles in radians.

Return Value: A float array of the same organization as the input containing the cosecant of the input.

Usage

Syntax: csc(x)

'x' is any numeric array

This function just uses csc(x) = 1/sin(x)

Cosecant is undefined (infinite) for x = n*pi for any integer n; this function displays a divide by zero warning and returns zero in those cases

Return format is double if input is double; float otherwise

When csc() is entered without any arguments, it prints its description, as shown below.

Examples

dv> csc()

Cosecant
Hypotenuse length over opposite leg length (in a right triangle)
csc(x) = 1/sin(x)
Works for arrays
S.Marshall 01-25-2008

0
dv> csc(-1//0//1)
Division by zero, 1 times
3x1x1 array of float, bsq format [12 bytes]
-1.18840        0.00000 1.18840

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 02-20-2008
Modified On: 02-20-2008

Personal tools