Difference between revisions of "Sec"

From SCAR Divi Manual
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Definition==
 
==Definition==
<func>function Sec(X: Extended): Extended; </func>
+
<source lang="scar" lines="false">
 +
function Sec(X: Extended): Extended;
 +
</source>
  
 
==Availability==
 
==Availability==
 
SCAR Divi 3.00 > Current
 
SCAR Divi 3.00 > Current
 +
 +
===Aliases===
 +
*Secant (SCAR Divi 3.00 > Current)
  
 
==Description==
 
==Description==
Line 9: Line 14:
  
 
Sec(X) = 1 / Cos(X)
 
Sec(X) = 1 / Cos(X)
 
==Aliases==
 
*Secant
 
  
 
==Example==
 
==Example==
Line 27: Line 29:
 
*[[Cos]]
 
*[[Cos]]
 
*[[Csc]]
 
*[[Csc]]
 +
*[[Cot]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Latest revision as of 11:44, 29 June 2011

Definition

function Sec(X: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Aliases

  • Secant (SCAR Divi 3.00 > Current)

Description

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

Sec(X) = 1 / Cos(X)

Example

begin
  WriteLn(Sec(Pi));
end.

Output:

1

See Also