Difference between revisions of "Manuals/calci/COS"

From ZCubes Wiki
Jump to navigation Jump to search
 
(46 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''COS(Number)'''</div><br/>
 +
* Number is the angle value in Radians
 +
* by default Calci use Radian as angle.
 +
**COS() returns the cosine of the given angle
  
Syntax
+
[[Manuals/calci/DCOS | DCOS]] can be used if the angle is in degrees.
  
</div></div>
+
The angle can be a single value or any complex array of values.
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
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 values either '+' or '-' like 1..5@COS or (-5)..(-1)@COS.
  
</div></div>
+
==Description==
----
+
Consider &nbsp;&nbsp;&nbsp; '''x = 60'''&nbsp;&nbsp;&nbsp;  then &nbsp;&nbsp;&nbsp;  '''=COS(RADIANS(60))'''&nbsp;&nbsp;&nbsp; gives &nbsp;&nbsp;&nbsp;'''0.5000000000000001'''  that is approximate to '''0.5'''<br/>
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
The above function gives the Cosine of 'x' in Degree.<br/>
 +
*In a right angled triangle,&nbsp;&nbsp;  '''COS = Adjacent side / Hypotenuse'''.<br/>
 +
*COS function determines the Cosine of the given angle.
 +
*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 COS(RADIANS(x)) or DCOS(x).<br/>
 +
*COS(RADIANS(90))= 6.123031769111886e-17 ie, approximately = 0. So for calculation we consider COS(RADIANS(90))=0
  
Examples
+
The following example shows how COS is applied to an array of numbers containing Angles 1..10.
  
</div></div>
+
1..10@COS
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
{| class="wikitable"
 +
|-
 +
! Angles !! 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
 +
|}
  
</div></div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">COS</font> </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
  
<font size="3"><font face="Times New Roman">COS(R)</font></font>
 
  
<font size="3"><font face="Times New Roman">'''Where R '''is the angle in the radians.</font></font>
 
  
</div></div>
+
== Examples ==
----
+
'''COS(x)'''
<div id="13SpaceContent" class="zcontent" align="left"><br /><br /><div id="1Space" class="gamizbox" title="1Space"><div id="1SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="1SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="1SpaceRollupContent" align="center"></span></span></div><div id="1SpaceCover"><div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
+
*'''x  ''' is the angle in radians.
  
<font size="3"><font face="Times New Roman">Multiply by PI/180 to convert angle to radians when the angle is in degrees.</font></font>
+
{|id="TABLE1" class="SpreadSheet blue"
  
</div></div>
+
|- class="even"
----
+
|'''COS(Radian)'''
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
+
|'''Value'''
  
<font size="3"><font face="Times New Roman">Calculate the cosine of the given angle.</font></font>
+
|- class="odd"
 +
| COS(0)
 +
| 1
  
</div></div>
+
|- class="even"
----
+
| COS(1)
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> 
+
| 0.54030230586
  
Lets see an example in (Column1, Row 1)
+
|- class="odd"
 +
|COS(90)
 +
| -0.44807361612
  
COS (R)
+
|}
  
COS (C1R1)''''''
+
*1..100@["z^2",SIN,COS] will display the Square value, Sin and Cos value from 1 to 100.
  
That is COS (5.25) is 0.5121
 
  
</font></font></div></div>
+
==Related Videos==
----
 
<div id="6SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
{{#ev:youtube|Jsiy4TxgIME|280|center|Cosine}}
  
| class="  " |
+
==See Also==
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
+
 
| Column1
+
*[[Manuals/calci/DCOS | DCOS]]
| class="  " | Column2
+
 
| class="  " | Column3
+
*[[Manuals/calci/ACOS | ACOS]]
| class="  " | Column4
+
 
|- class="odd"
+
*[[Manuals/calci/COSH | COSH]]
| class=" " | Row1
+
 
| class="sshl_f" | 5.25
+
==References==
| class="sshl_f" | 0.5121
+
 
| class="sshl_f" |
+
*[http://en.wikipedia.org/wiki/Trigonometric_functions List of Trigonometric Functions]
| class="sshl_f" |
+
 
|- class="even"
+
 
| class="  " | Row2
+
 
| class="sshl_f" |
+
*[[Z_API_Functions | List of Main Z Functions]]
| class="sshl_f SelectTD SelectTD" |
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 
</div></div></div></div></div></div></div></div></div></div></div></div>
 

Latest revision as of 23:47, 11 February 2020

COS(Number)


  • Number is the angle value in Radians
  • by default Calci use Radian as angle.
    • COS() returns the cosine of the given 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 values either '+' or '-' like 1..5@COS or (-5)..(-1)@COS.

Description

Consider     x = 60    then     =COS(RADIANS(60))    gives    0.5000000000000001 that is approximate to 0.5
The above function gives the Cosine of 'x' in Degree.

  • In a right angled triangle,   COS = Adjacent side / Hypotenuse.
  • COS function determines the Cosine of the given angle.
  • 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 COS(RADIANS(x)) or DCOS(x).
  • COS(RADIANS(90))= 6.123031769111886e-17 ie, approximately = 0. So for calculation we consider COS(RADIANS(90))=0

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

1..10@COS

Angles 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) 1
COS(1) 0.54030230586
COS(90) -0.44807361612
  • 1..100@["z^2",SIN,COS] will display the Square value, Sin and Cos value from 1 to 100.


Related Videos

Cosine

See Also

References