Difference between revisions of "Manuals/calci/COS"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
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 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 | + | 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== | ==Description== | ||
Line 13: | Line 13: | ||
The above function gives the Cosine of 'x' in Degree.<br/> | The above function gives the Cosine of 'x' in Degree.<br/> | ||
− | *In a right angled triangle, '''COS = Adjacent / Hypotenuse'''.<br/> | + | *In a right angled triangle, '''COS = Adjacent side / Hypotenuse'''.<br/> |
*By default, Calci takes the angle in Radians. | *By default, Calci takes the angle in Radians. | ||
− | * To convert | + | * To convert Radians to Degrees multiply with 180/PI() or we have to use the Radians function COS(RADIANS(x)) or DCOS(x). |
* COS function determines the Cosine of the given angle. <br/> | * COS function determines the Cosine of the given angle. <br/> | ||
− | The following example shows how COS is applied to an array of numbers containing | + | The following example shows how COS is applied to an array of numbers containing Angles 1..10. |
1..10@COS | 1..10@COS | ||
Line 24: | Line 24: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! | + | ! Angles !! COS |
|- | |- | ||
| 1 || 0.54030230586 | | 1 || 0.54030230586 |
Revision as of 22:59, 5 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 values either '+' or '-' like 1..5@COS or (-5)..(-1)@COS.
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 side / Hypotenuse.
- 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 function determines the Cosine of the given angle.
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) | 0 |
COS(1) | 0.54030230586 |
COS(90) | -0.44807361612 |