Difference between revisions of "Manuals/calci/SEC"

From ZCubes Wiki
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 SEC(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.  
+
For example SEC(1..100) can give an array of the results, which is the SEC value for each of the elements in the array. The array could be of any shape.  
  
 
==Description==
 
==Description==
Line 26: Line 26:
 
! Number !! SEC  
 
! Number !! SEC  
 
|-
 
|-
| 1 || 0.54030230586
+
| 1 ||1.85081571768092
 
|-
 
|-
| 2 || -0.41614683654
+
| 2 || -2.40299796172238
 
|-
 
|-
| 3 || -0.9899924966
+
| 3 || -1.01010866590799
 
|-
 
|-
| 4 || -0.65364362086
+
| 4 ||-1.52988565646639
 
|-
 
|-
| 5 || 0.28366218546
+
| 5 || 3.52532008581608
 
|-
 
|-
| 6 || 0.96017028665
+
| 6 || 1.0414819265951
 
|-
 
|-
| 7 || 0.75390225434
+
| 7 || 1.3264319004737
 
|-
 
|-
| 8 || -0.1455000338
+
| 8 || -6.87285063669037
 
|-
 
|-
| 9 || -0.91113026188
+
| 9 || -1.09753790630496
 
|-
 
|-
| 10 || -0.83907152907
+
| 10 || -1.19179350668789
 
|}
 
|}
  

Revision as of 00:01, 4 November 2013

SEC(x)


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

DSEC can be used if the angle is in degrees.

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

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

Description

Consider     x = 90    then     =SEC(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 SEC(RADIAN(x))or DSEC(x).
  • SSEC function determines the Cosine of the given angle.

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

1..10@SEC

Number SEC
1 1.85081571768092
2 -2.40299796172238
3 -1.01010866590799
4 -1.52988565646639
5 3.52532008581608
6 1.0414819265951
7 1.3264319004737
8 -6.87285063669037
9 -1.09753790630496
10 -1.19179350668789

Examples

SEC(x)

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

See Also

References