Difference between revisions of "Manuals/calci/SEC"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''SEC'''(n) where '''n '''is the angle in radian. </div> ---- <div id="1SpaceContent" class="zcontent...")
 
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''SEC (Number)'''</div><br/>
 +
* where <math>Number</math> is the angle in Radians
 +
* by default Calci use angle in Radians.
 +
**SEC(), returns the secant of the given angle.
  
'''SEC'''(n)
+
[[Manuals/calci/DSEC | DSEC]] can be used if the angle is in Degrees.
  
where
+
The angle can be a single value or any complex array of values.
  
''''''is the angle in radian.
+
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 values either '+' or '-' like 1..5@SEC or (-5)..(-1)@SEC.  
  
</div>
+
==Description==
----
+
Consider &nbsp;&nbsp;&nbsp; '''x = 0'''&nbsp;&nbsp;&nbsp;  then &nbsp;&nbsp;&nbsp;  '''=SEC(RADIANS(0))'''&nbsp;&nbsp;&nbsp; gives &nbsp;&nbsp;&nbsp;'''1''' <br/>
<div id="1SpaceContent" class="zcontent" align="left">
+
The above function gives the Secant of a number in Degree.<br/>
 +
*Sec function gives the Secant of angle.
 +
*This function is the reciprocal of COS function. i.e, '''Sec(x) = 1 / Cos(x)'''where x is any Number.
 +
*In a right angled triangle,&nbsp;&nbsp;  '''SEC = Hypotenuse/Adjacent side'''.<br/>
 +
*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 SEC(RADIANS(x)) or DSEC(x).
 +
*SEC(RADIANS(90))= 16331778728383844 ie, approximately= Infinity. So for calculation we consider SEC(RADIANS(90))=Infinity
  
SEC function determines the secant of the given angle.<br />
 
  
</div>
+
The following example shows how SEC is applied to an array of numbers containing angles 1..10.
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
SEC returns NaN if n is not real
+
1..10@SEC
  
</div>
+
{| class="wikitable"
----
+
|-
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
+
! Angles !! 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(Number)'''
 +
*'''Number ''' is the angle in radians.
 +
 
 +
{|id="TABLE1" class="SpreadSheet blue"
 +
 
 +
|- class="even"
 +
|'''SEC(Radian)'''
 +
|'''Value'''
  
SEC
+
|- class="odd"
 +
| SEC(0)
 +
| 1
  
</div></div>
+
|- class="even"
----
+
| SEC(1)
<div id="8SpaceContent" class="zcontent" align="left">
+
| 1.8508157176809255
  
Lets see an example in (Column2Row1)
+
|- class="odd"
 +
|SEC(90)
 +
| -2.2317761278577963
 +
|}
  
<nowiki>=SEC(Column1Row1)</nowiki>
+
==Related Videos==
  
Returns 1.903594 for SEC(45)
+
{{#ev:youtube|Q7htxHDN8LE|280|center|Secant}}
  
Consider another example in (Column2Row2)
+
==See Also==
  
<nowiki>=SEC(Column1Row2)</nowiki>
+
*[[Manuals/calci/DSEC | DSEC]]
 +
*[[Manuals/calci/SECH | SECH]]
 +
*[[Manuals/calci/COS | COS]]
 +
*[[Manuals/calci/DCOS | DCOS]]
  
Returns NaN for SEC("abc")
+
==References==
 +
 
 +
*[http://en.wikipedia.org/wiki/Trigonometric_functions List of Trigonometric Functions]
  
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<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=" " | Row1
 
| class=" " | 45
 
| 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" |
 
|
 
|}
 
  
{|
+
*[[Z_API_Functions | List of Main Z Functions]]
| <span align="left">[[Image:calci1.gif]]</span>
 
|
 
|
 
[[Image:bold.gif]]
 
|
 
[[Image:italic.gif]]
 
|
 
[[Image:normal.gif]]
 
|
 
[[Image:underline.gif]]
 
|
 
[[Image:border.gif]]
 
|
 
[[Image:numbers.gif]]
 
|
 
[[Image:sort.gif]]
 
|
 
[[Image:formatcells.gif]]
 
|
 
[[Image:graphs.gif]]
 
| $
 
|}
 
  
</div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 15:36, 3 July 2018

SEC (Number)


  • where is the angle in Radians
  • by default Calci use angle in Radians.
    • SEC(), returns the secant of the given 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 values either '+' or '-' like 1..5@SEC or (-5)..(-1)@SEC.

Description

Consider     x = 0    then     =SEC(RADIANS(0))    gives    1
The above function gives the Secant of a number in Degree.

  • Sec function gives the Secant of angle.
  • This function is the reciprocal of COS function. i.e, Sec(x) = 1 / Cos(x)where x is any Number.
  • In a right angled triangle,   SEC = Hypotenuse/Adjacent side.
  • 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 SEC(RADIANS(x)) or DSEC(x).
  • SEC(RADIANS(90))= 16331778728383844 ie, approximately= Infinity. So for calculation we consider SEC(RADIANS(90))=Infinity


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

1..10@SEC

Angles 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(Number)

  • Number  is the angle in radians.
SEC(Radian) Value
SEC(0) 1
SEC(1) 1.8508157176809255
SEC(90) -2.2317761278577963

Related Videos

Secant

See Also

References