Difference between revisions of "Csc"

From SCAR Divi Manual
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
==Availability==
 
==Availability==
 
SCAR Divi 3.00 > Current
 
SCAR Divi 3.00 > Current
 +
 +
===Aliases===
 +
*Cosecant (SCAR Divi 3.00 > Current)
  
 
==Description==
 
==Description==
Line 15: Line 18:
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   WriteLn(Csc(Pi));
+
   WriteLn(Csc(5));
 +
  WriteLn(1 / Sin(5));
 
end.
 
end.
 
</source>
 
</source>
  
 
Output:
 
Output:
  1,26804284593616E18
+
  -1,04283521277141
 +
-1,04283521277141
  
 
==See Also==
 
==See Also==
Line 26: Line 31:
 
*[[Sin]]
 
*[[Sin]]
 
*[[Sec]]
 
*[[Sec]]
 +
*[[Cot]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Latest revision as of 10:44, 29 June 2011

Definition

function Csc(X: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Aliases

  • Cosecant (SCAR Divi 3.00 > Current)

Description

This function calculates the cosecant of a value X. The cosecant is the ratio of the length of the hypotenuse to the length of the opposite side. It is a trigonometric function.

Csc(X) = 1 / Sin(X)

Example

begin
  WriteLn(Csc(5));
  WriteLn(1 / Sin(5));
end.

Output:

-1,04283521277141
-1,04283521277141

See Also