Difference between revisions of "Manuals/calci/SEC"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
t" class="zcontent" align="left">
+
<div style="font-size:30px">'''COS(x)'''</div><br/>
 +
* where x is the angle in Radians
 +
* by default Calci use Radian as angle
  
SEC function determines the secant of the given angle.<br />
+
[[Manuals/calci/DCOS | DCOS]] can be used if the angle is in degrees.  
  
</div>
+
The angle can be a single value or any complex array of values.
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
SEC returns NaN if n is not real
+
For example COS(1..100) can give an array of the results, which is the COS value for each of the elements in the array. The array could be of any shape.
  
</div>
+
==Description==
----
+
Consider &nbsp;&nbsp;&nbsp; '''x = 90'''&nbsp;&nbsp;&nbsp;  then &nbsp;&nbsp;&nbsp;  '''=COS(RADIANS(90))'''&nbsp;&nbsp;&nbsp; gives &nbsp;&nbsp;&nbsp;'''0''' <br/>
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
SEC
+
The above function gives the Cosine of 'x' in Degree.<br/>
 +
*In a right angled triangle,&nbsp;&nbsp;  '''COS = Adjacent / Hypotenuse'''.<br/>
 +
*By default, Calci takes the angle in Radians.
 +
* To convert Radian to Degree  multiply with 180/PI() or we have to use the Radians function COS(RADIAN(x))or DCOS(x).
 +
* COS function determines the Cosine of the given angle. <br/>
  
</div></div>
+
The following example shows how COS is applied to an array of numbers containing numbers 1..10.
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column2Row1)
+
1..10@COS
  
<nowiki>=SEC(Column1Row1)</nowiki>
+
{| class="wikitable"
 +
|-
 +
! Number !! COS
 +
|-
 +
| 1 || 0.54030230586
 +
|-
 +
| 2 || -0.41614683654
 +
|-
 +
| 3 || -0.9899924966
 +
|-
 +
| 4 || -0.65364362086
 +
|-
 +
| 5 || 0.28366218546
 +
|-
 +
| 6 || 0.96017028665
 +
|-
 +
| 7 || 0.75390225434
 +
|-
 +
| 8 || -0.1455000338
 +
|-
 +
| 9 || -0.91113026188
 +
|-
 +
| 10 || -0.83907152907
 +
|}
  
Returns 1.903594 for SEC(45)
+
== Examples ==
 +
'''COS(x)'''
 +
*'''x  ''' is the angle in radians.
  
Consider another example in (Column2Row2)
+
{|id="TABLE1" class="SpreadSheet blue"
  
<nowiki>=SEC(Column1Row2)</nowiki>
+
|- class="even"
 +
|'''COS(Radian)'''
 +
|'''Value'''
  
Returns NaN for SEC("abc")
+
|- class="odd"
 +
| COS(0)
 +
| 0
  
</div>
+
|- class="even"
----
+
| COS(1)
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
+
| 0.54030230586
----
 
<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="odd"
| class=" " | Row1
+
|COS(90)
| class=" " | 45
+
| -0.44807361612
| class="sshl_f" | 1.903594
+
 
| class="          sshl_f  sshl_f" |
 
| class="                                                          sshl_f  sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| abc
 
| class="sshl_f  " | NaN
 
| class=" sshl_f" |
 
| class="sshl_f  sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f  " |
 
| class="                      sshl_f  sshl_f                  SelectTD1 ChangeBGColor" |
 
<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>
 
| 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" |
 
|
 
 
|}
 
|}
  
{|
+
==See Also==
| <span align="left">[[Image:calci1.gif]]</span>
+
 
|
+
*[[Manuals/calci/DCOS | DCOS]]
|
+
 
[[Image:bold.gif]]
+
*[[Manuals/calci/ACOS | ACOS]]
|
+
 
[[Image:italic.gif]]
+
*[[Manuals/calci/COSH | COSH]]
|
+
 
[[Image:normal.gif]]
+
==References==
|
 
[[Image:underline.gif]]
 
|
 
[[Image:border.gif]]
 
|
 
[[Image:numbers.gif]]
 
|
 
[[Image:sort.gif]]
 
|
 
[[Image:formatcells.gif]]
 
|
 
[[Image:graphs.gif]]
 
| $
 
|}
 
  
</div>
+
*[http://en.wikipedia.org/wiki/Trigonometric_functions List of Trigonometric Functions]
----
+
*[http://en.wikipedia.org/wiki/Sine SINE]

Revision as of 23:52, 3 November 2013

COS(x)


  • where x is the angle in Radians
  • by default Calci use Radian as angle

DCOS can be used if the angle is in degrees.

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

For example COS(1..100) can give an array of the results, which is the COS value for each of the elements in the array. The array could be of any shape.

Description

Consider     x = 90    then     =COS(RADIANS(90))    gives    0

The above function gives the Cosine of 'x' in Degree.

  • In a right angled triangle,   COS = Adjacent / Hypotenuse.
  • By default, Calci takes the angle in Radians.
  • To convert Radian to Degree multiply with 180/PI() or we have to use the Radians function COS(RADIAN(x))or DCOS(x).
  • COS function determines the Cosine of the given angle.

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

1..10@COS

Number COS
1 0.54030230586
2 -0.41614683654
3 -0.9899924966
4 -0.65364362086
5 0.28366218546
6 0.96017028665
7 0.75390225434
8 -0.1455000338
9 -0.91113026188
10 -0.83907152907

Examples

COS(x)

  • x   is the angle in radians.
COS(Radian) Value
COS(0) 0
COS(1) 0.54030230586
COS(90) -0.44807361612

See Also

References