Difference between revisions of "Manuals/calci/COTAN"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''COTAN'''(n) where '''n '''is the angle in radian. </div> ---- <div id="1SpaceContent" class="zconte...")
 
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''COTAN(Number)'''</div><br/>
 +
* Number is the angle value in Radians.
 +
**COTAN() returns the cotangent of the given angle
 +
* by default, Calci use Radian as angle
  
'''COTAN'''(n)
+
[[Manuals/calci/DCOTAN | DCOTAN]] can be used if the angle is in Degrees.
  
where
+
The angle can be a single value or any complex array of values.
  
''''''is the angle in radian.
+
For example COTAN(1..100) can give an array of the results, which is the COTAN value for each of the elements in the array. The array could be of any values either '+' or '-' like 1..5@COTAN or (-5)..(-1)@COTAN.  
  
</div>
+
==Description==
----
+
Consider &nbsp;&nbsp;&nbsp; '''x = 45'''&nbsp;&nbsp;&nbsp;  then &nbsp;&nbsp;&nbsp;  '''=COTAN(RADIANS(45))'''&nbsp;&nbsp;&nbsp; gives &nbsp;&nbsp;&nbsp;'''1.0000000000000002'''  that is approximate to '''1''' <br/>
<div id="1SpaceContent" class="zcontent" align="left">
+
The above function gives the Cotangent of 'x' in Degree.<br/>
 +
*Cotan function gives the Cotangent of angle 'x'.
 +
*This function is the reciprocal of TAN function. i.e, '''Cotan(x) = 1 / Tan(X)'''.
 +
*In a right angled triangle, '''COTAN = Adjacent Side / Opposite side''' or '''COS / SIN'''.<br/>
 +
*By default, Calci takes the angle in Radians.
 +
*To convert Radians to Degrees  multiply with 180/PI() or we have to use the Radians function COTAN(RADIANS(x)) or DCOTAN(x).<br/>
 +
*COTAN(RADIANS(90))= 6.123031769111886e-17 ie, approximately = 0. So for calculation we consider COTAN(RADIANS(90))=0
 +
The following example shows how COTAN is applied to an array of numbers containing angles 1..10.
  
COTAN function determines the cotangent of the given angle.<br />
+
1..10@COTAN
  
</div>
+
{| class="wikitable"
----
+
|-
<div id="7SpaceContent" class="zcontent" align="left">
+
! Angles !! COTAN
 +
|-
 +
| 1 || 0.642092616
 +
|-
 +
| 2 || -0.457657554
 +
|-
 +
| 3 || -7.015252551
 +
|-
 +
| 4 || 0.863691154
 +
|-
 +
| 5 ||-0.295812916
 +
|-
 +
| 6 || -3.436353004
 +
|-
 +
| 7 || 1.147515422
 +
|-
 +
| 8 || -0.147065064
 +
|-
 +
| 9 || -2.210845411
 +
|-
 +
| 10 || 1.542351045
 +
|}
 +
 
 +
== Examples ==
 +
'''COTAN(x)'''
 +
*'''x  ''' is the angle in radians.
 +
*COTAN(-x) = -COTAN(x)
 +
 
 +
{|id="TABLE1" class="SpreadSheet blue"
 +
 
 +
|- class="even"
 +
|'''COTAN(Radian)'''
 +
|'''Value'''
 +
 
 +
|- class="odd"
 +
| COTAN(0)
 +
| Infinity
  
COTAN returns NaN if n is not real
+
|- class="even"
 +
| COTAN(1)
 +
| 0.642092615
 +
 
 +
|- class="odd"
 +
| COTAN(90)
 +
| -0.501202783
  
</div>
+
|}
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
COTAN
+
==Related Videos==
  
</div></div>
+
{{#ev:youtube|Q7htxHDN8LE|280|center|Cotangent}}
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column2Row1)
+
==See Also==
  
<nowiki>=COTAN(Column1Row1)</nowiki>
+
*[[Manuals/calci/DCOTAN | DCOTAN]]
  
Returns 0.61737 for COTAN(45)
+
*[[Manuals/calci/ATAN | ATAN]]
  
Consider another example in (Column2Row2)
+
==References==
  
<nowiki>=COTAN(Column1Row2)</nowiki>
+
*[http://en.wikipedia.org/wiki/Trigonometric_functions List of Trigonometric Functions]
  
Returns NaN for COTAN("abc")
 
  
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
 
|+ Default Calci
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | 45
 
| class="sshl_f" | 0.61737
 
| class="          sshl_f  sshl_f" |
 
| class="                                                          sshl_f  sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="      SelectTD1 ChangeBGColor SelectTD1" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>abc
 
| class="sshl_f" | NaN
 
| class=" sshl_f" |
 
| class="sshl_f  sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f  " |
 
| class="                      sshl_f  sshl_f      " |
 
| class="sshl_f  " |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="      " |
 
| class=" sshl_f" |
 
| class="sshl_f" |
 
|
 
|- class="odd"
 
| class=" " | Row5
 
|
 
| class=" sshl_f" |
 
| class="sshl_f" |
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
| class="sshl_f" |
 
|
 
|}
 
  
{|
+
*[[Z_API_Functions | List of Main Z Functions]]
| <span align="left">[[Image:calci1.gif]]</span>
 
|
 
|
 
[[Image:bold.gif]]
 
|
 
[[Image:italic.gif]]
 
|
 
[[Image:normal.gif]]
 
|
 
[[Image:underline.gif]]
 
|
 
[[Image:border.gif]]
 
|
 
[[Image:numbers.gif]]
 
|
 
[[Image:sort.gif]]
 
|
 
[[Image:formatcells.gif]]
 
|
 
[[Image:graphs.gif]]
 
| $
 
|}
 
  
</div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 17:27, 18 June 2018

COTAN(Number)


  • Number is the angle value in Radians.
    • COTAN() returns the cotangent of the given angle
  • by default, Calci use Radian as angle

DCOTAN can be used if the angle is in Degrees.

The angle can be a single value or any complex array of values.

For example COTAN(1..100) can give an array of the results, which is the COTAN value for each of the elements in the array. The array could be of any values either '+' or '-' like 1..5@COTAN or (-5)..(-1)@COTAN.

Description

Consider     x = 45    then     =COTAN(RADIANS(45))    gives    1.0000000000000002 that is approximate to 1
The above function gives the Cotangent of 'x' in Degree.

  • Cotan function gives the Cotangent of angle 'x'.
  • This function is the reciprocal of TAN function. i.e, Cotan(x) = 1 / Tan(X).
  • In a right angled triangle, COTAN = Adjacent Side / Opposite side or COS / SIN.
  • By default, Calci takes the angle in Radians.
  • To convert Radians to Degrees multiply with 180/PI() or we have to use the Radians function COTAN(RADIANS(x)) or DCOTAN(x).
  • COTAN(RADIANS(90))= 6.123031769111886e-17 ie, approximately = 0. So for calculation we consider COTAN(RADIANS(90))=0

The following example shows how COTAN is applied to an array of numbers containing angles 1..10.

1..10@COTAN

Angles COTAN
1 0.642092616
2 -0.457657554
3 -7.015252551
4 0.863691154
5 -0.295812916
6 -3.436353004
7 1.147515422
8 -0.147065064
9 -2.210845411
10 1.542351045

Examples

COTAN(x)

  • x   is the angle in radians.
  • COTAN(-x) = -COTAN(x)
COTAN(Radian) Value
COTAN(0) Infinity
COTAN(1) 0.642092615
COTAN(90) -0.501202783

Related Videos

Cotangent

See Also

References