Difference between revisions of "Cotan"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function Cotan(X: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== This function calcu...")
 
(Redirected page to Cot)
Line 1: Line 1:
==Definition==
+
#REDIRECT [[Cot]]
<source lang="scar" lines="false">
 
function Cotan(X: Extended): Extended;
 
</source>
 
 
 
==Availability==
 
SCAR Divi 3.00 > Current
 
 
 
==Description==
 
This function calculates the [http://mathworld.wolfram.com/Cotangent.html cotangent] of a value '''X'''. The cotangent of an angle is the ratio of the length of the hypotenuse to the length of the opposite side. It is a [http://en.wikipedia.org/wiki/Trigonometric_functions trigonometric function].
 
 
 
Cotan(X) = Cos(X) / Sin(X)
 
 
 
==Example==
 
<source lang="scar">
 
begin
 
  WriteLn(Cotan(1));
 
  WriteLn(Cotan(0.5));
 
end.
 
</source>
 
 
 
Output:
 
0,642092615934331
 
1,83048772171245
 
 
 
==See Also==
 
*[[ArcCot]]
 
*[[Tan]]
 
*[[Cos]]
 
*[[Sin]]
 
 
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 

Revision as of 11:45, 29 June 2011

Redirect to: