Difference between revisions of "Csc"

From SCAR Divi Manual
Jump to: navigation, search
(Example)
Line 15: Line 15:
 
<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==

Revision as of 08:54, 28 June 2011

Definition

function Csc(X: Extended): Extended;

Availability

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