Difference between revisions of "Manuals/calci/COS"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<div style="font-size:30px">'''SIN(n)'''</div><br/>
+
<div style="font-size:30px">'''COS(n)'''</div><br/>
 
* where '''n''' is in Radians
 
* where '''n''' is in Radians
 
* by default Calci use Radian as angle
 
* by default Calci use Radian as angle
  
[[Manuals/calci/DSIN | DSIN]] can be used if the angle is in degrees.  
+
[[Manuals/calci/DCOS | DCOS]] can be used if the angle is in degrees.  
  
 
The angle can be a single value or any complex array of values.
 
The angle can be a single value or any complex array of values.
  
For example SIN(1..100) can give an array of the results, which is the SIN value for each of the elements in the array. The array could be of any shape.  
+
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==
 
==Description==
Consider &nbsp;&nbsp;&nbsp; '''n = 90'''&nbsp;&nbsp;&nbsp;  then &nbsp;&nbsp;&nbsp;  '''=SIN(RADIANS(90))'''&nbsp;&nbsp;&nbsp; gives &nbsp;&nbsp;&nbsp;'''1''' <br/>
+
Consider &nbsp;&nbsp;&nbsp; '''n = 90'''&nbsp;&nbsp;&nbsp;  then &nbsp;&nbsp;&nbsp;  '''=COS(RADIANS(90))'''&nbsp;&nbsp;&nbsp; gives &nbsp;&nbsp;&nbsp;'''1''' <br/>
* SIN function determines the sine of the given angle.
+
* COS function determines the sine of the given angle.
  
The following example shows how SIN is applied to an array of numbers containing numbers 1..10.
+
The following example shows how COS is applied to an array of numbers containing numbers 1..10.
  
1..10@SIN
+
1..10@COS
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Number !! SIN
+
! Number !! COS
 
|-
 
|-
| 1 || 0.8414709848078965
+
| 1 || 0.54030230586
 
|-
 
|-
| 2 || 0.9092974268256817
+
| 2 || -0.41614683654
 
|-
 
|-
| 3 || 0.1411200080598672
+
| 3 || -0.9899924966
 
|-
 
|-
| 4 || -0.7568024953079282
+
| 4 || -0.65364362086
 
|-
 
|-
| 5 || -0.9589242746631385
+
| 5 || 0.28366218546
 
|-
 
|-
| 6 || -0.27941549819892586
+
| 6 || 0.96017028665
 
|-
 
|-
| 7 || 0.6569865987187891
+
| 7 || 0.75390225434
 
|-
 
|-
| 8 || 0.9893582466233818
+
| 8 || -0.1455000338
 
|-
 
|-
| 9 || 0.4121184852417566
+
| 9 || -0.91113026188
 
|-
 
|-
| 10 || -0.5440211108893698
+
| 10 || -0.83907152907
 
|}
 
|}
  
 
== Examples ==
 
== Examples ==
'''SIN(n)'''
+
'''COS(n)'''
 
*'''n  ''' is the angle in radians.
 
*'''n  ''' is the angle in radians.
  
Line 49: Line 49:
  
 
|- class="even"
 
|- class="even"
|'''SIN(Radian)'''
+
|'''COS(Radian)'''
 
|'''Value'''
 
|'''Value'''
  
 
|- class="odd"
 
|- class="odd"
| SIN(0)
+
| COS(0)
 
| 0
 
| 0
  
 
|- class="even"
 
|- class="even"
| SIN(1)
+
| COS(1)
| 0.8414709848
+
| 0.54030230586
  
 
|- class="odd"
 
|- class="odd"
|SIN(90)
+
|COS(90)
|0.8939966636
+
|-0.44807361612
  
 
|}
 
|}

Revision as of 02:10, 30 October 2013

COS(n)


  • where n is 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     n = 90    then     =COS(RADIANS(90))    gives    1

  • COS function determines the sine 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(n)

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