Difference between revisions of "Manuals/calci/SIN"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(125 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''SIN(Number)'''</div><br/>
 +
* where '''Number''' is the angle in Radians.
 +
* by default Calci uses Radian as angle.
 +
**SIN(), returns the sine of the given angle.
  
Syntax
+
[[Manuals/calci/DSIN | DSIN]] 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="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
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 values either '+' or '-' like 1..5@SIN or (-5)..(-1)@SIN.
  
</div></div>
+
==Description==
----
+
Consider &nbsp;&nbsp;&nbsp; '''x = 90'''&nbsp;&nbsp;&nbsp;  then &nbsp;&nbsp;&nbsp;  '''=SIN(RADIANS(90))'''&nbsp;&nbsp;&nbsp; gives &nbsp;&nbsp;&nbsp;'''1''' <br/>
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
+
The above function gives the Sine of 'x' in Degree.<br/>
----
+
* In a right angled triangle, '''SIN = Opposite side / Hypotenuse'''.
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
+
*SIN function determines the Sine 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 SIN(RADIANS(x)) or DSIN(x).
 +
* SIN(-x) = -SIN(x),where x is any Number.
  
<font size="5">Description</font>
+
The following example shows how SIN is applied to an array of numbers containing angles 1..10.
  
</div></div>
+
* Type =1..10@SIN in Calci
----
+
* Type =1..10@SIN or 1..10@SIN in [[ZOS]]
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">'''''' '''<font size="6">SIN</font>''' '''''' </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><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">
 
  
Consider n = 90 then<br />=SIN(RADIANS(90)) gives 1''' '''
 
  
</div></div>
+
{| class="wikitable"
----
+
|-
<div id="5SpaceContent" class="zcontent" align="left"><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">
+
! Angles !! SIN
 +
|-
 +
| 1 || 0.8414709848078965
 +
|-
 +
| 2 || 0.9092974268256817
 +
|-
 +
| 3 || 0.1411200080598672
 +
|-
 +
| 4 || -0.7568024953079282
 +
|-
 +
| 5 || -0.9589242746631385
 +
|-
 +
| 6 || -0.27941549819892586
 +
|-
 +
| 7 || 0.6569865987187891
 +
|-
 +
| 8 || 0.9893582466233818
 +
|-
 +
| 9 || 0.4121184852417566
 +
|-
 +
| 10 || -0.5440211108893698
 +
|}
 +
*1..100@["z^2",SIN,COS] will display the Square value, Sin and Cos value from 1 to 100
 +
 
 +
== Examples ==
 +
'''SIN(Number)'''
 +
*'''Number ''' is the angle in radians.
 +
 
 +
{|id="TABLE1" class="SpreadSheet blue"
 +
 
 +
|- class="even"
 +
|'''SIN(Radian)'''
 +
|'''Value'''
 +
 
 +
|- class="odd"
 +
| SIN(0)
 +
| 0
  
SIN function determines the sine of the given angle.
+
|- class="even"
 +
| SIN(1)
 +
| 0.8414709848
 +
 
 +
|- class="odd"
 +
|SIN(90)
 +
|0.8939966636
  
</div></div>
+
|}
----
+
*d=1..10@SIN;
<div id="12SpaceContent" 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">
+
*d.columns("SIN")
  
'''SIN'''('''n''')
+
{|id="TABLE1" class="SpreadSheet blue"
  
'''n  ''' is the angle in radians.
+
|- class="even"
 +
|'''SIN'''
  
</div></div>
+
|- class="odd"
----
+
|0.8414709848078965
<div id="4SpaceContent" class="zcontent" align="left"><div>
 
  
{| id="TABLE1" class="SpreadSheet blue"
 
 
|- class="even"
 
|- class="even"
| class=" " |
+
|0.9092974268256817
| Column1
+
 
| class="      " | Column2
 
| class="    " | Column3
 
| class="  " |
 
| class="  " | Column4
 
|
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
|0.1411200080598672
| class="sshl_f" | 90
+
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
 
|- class="even"
 
|- class="even"
| class="  " | Row2
+
| -0.7568024953079282
| class="sshl_f" | 1
+
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| -0.9589242746631385
| class="sshl_f SelectTD SelectTD" |
+
 
<div id="4Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="4Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="  " |
 
| class="sshl_f" |
 
|
 
 
|- class="even"
 
|- class="even"
| Row4
+
| -0.27941549819892586
| class="sshl_f" |
+
 
| class="sshl_f" |
 
|
 
| class=" " |
 
| class="sshl_f" |
 
|
 
 
|- class="odd"
 
|- class="odd"
| Row6
+
|0.6569865987187891
| class="sshl_f  " |
+
 
<div id="4Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
+
|- class="even"
| class="sshl_f" |
+
|0.9893582466233818
|
+
 
| class="sshl_f" |
+
|- class="odd"
|
+
|0.4121184852417566
|
+
 
 +
|- class="even"
 +
| -0.5440211108893698
 +
 
 +
|}
 +
 
 +
*d.io().columns(["Number","SIN"])
 +
{| class="wikitable"
 +
|-
 +
! Number !! SIN
 +
|-
 +
| 1 || 0.8414709848078965
 +
|-
 +
| 2 || 0.9092974268256817
 +
|-
 +
| 3 || 0.1411200080598672
 +
|-
 +
| 4 || -0.7568024953079282
 +
|-
 +
| 5 || -0.9589242746631385
 +
|-
 +
| 6 || -0.27941549819892586
 +
|-
 +
| 7 || 0.6569865987187891
 +
|-
 +
| 8 || 0.9893582466233818
 +
|-
 +
| 9 || 0.4121184852417566
 +
|-
 +
| 10 || -0.5440211108893698
 
|}
 
|}
  
<div align="left"></div>''''''</div></div>
+
*d.io().column("Number","SIN")
----
+
{| class="wikitable"
</div></div></div></div></div></div></div></div></div>
+
|-
 +
! Number !! SIN
 +
|-
 +
| 1 || 0.8414709848078965
 +
|-
 +
| 2 || 0.9092974268256817
 +
|-
 +
| 3 || 0.1411200080598672
 +
|-
 +
| 4 || -0.7568024953079282
 +
|-
 +
| 5 || -0.9589242746631385
 +
|-
 +
| 6 || -0.27941549819892586
 +
|-
 +
| 7 || 0.6569865987187891
 +
|-
 +
| 8 || 0.9893582466233818
 +
|-
 +
| 9 || 0.4121184852417566
 +
|-
 +
| 10 || -0.5440211108893698
 +
|}
 +
 
 +
==Related Videos==
 +
 
 +
{{#ev:youtube|Jsiy4TxgIME|280|center|Sine}}
 +
 
 +
==See Also==
 +
 
 +
*[[Manuals/calci/COS | COS]]
 +
*[[Manuals/calci/TAN | TAN]]
 +
*[[Manuals/calci/ASIN| ASIN]]
 +
*[[Manuals/calci/DSIN | DSIN]]
 +
 
 +
==References==
 +
 
 +
*[http://en.wikipedia.org/wiki/Trigonometric_functions List of Trigonometric Functions]
 +
*[http://en.wikipedia.org/wiki/Sine SIN]
 +
 
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 06:18, 11 February 2020

SIN(Number)


  • where Number is the angle in Radians.
  • by default Calci uses Radian as angle.
    • SIN(), returns the sine of the given angle.

DSIN can be used if the angle is in degrees.

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 values either '+' or '-' like 1..5@SIN or (-5)..(-1)@SIN.

Description

Consider     x = 90    then     =SIN(RADIANS(90))    gives    1
The above function gives the Sine of 'x' in Degree.

  • In a right angled triangle, SIN = Opposite side / Hypotenuse.
  • SIN function determines the Sine 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 SIN(RADIANS(x)) or DSIN(x).

  • SIN(-x) = -SIN(x),where x is any Number.

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

  • Type =1..10@SIN in Calci
  • Type =1..10@SIN or 1..10@SIN in ZOS


Angles SIN
1 0.8414709848078965
2 0.9092974268256817
3 0.1411200080598672
4 -0.7568024953079282
5 -0.9589242746631385
6 -0.27941549819892586
7 0.6569865987187891
8 0.9893582466233818
9 0.4121184852417566
10 -0.5440211108893698
  • 1..100@["z^2",SIN,COS] will display the Square value, Sin and Cos value from 1 to 100

Examples

SIN(Number)

  • Number  is the angle in radians.
SIN(Radian) Value
SIN(0) 0
SIN(1) 0.8414709848
SIN(90) 0.8939966636
  • d=1..10@SIN;
  • d.columns("SIN")
SIN
0.8414709848078965
0.9092974268256817
0.1411200080598672
-0.7568024953079282
-0.9589242746631385
-0.27941549819892586
0.6569865987187891
0.9893582466233818
0.4121184852417566
-0.5440211108893698
  • d.io().columns(["Number","SIN"])
Number SIN
1 0.8414709848078965
2 0.9092974268256817
3 0.1411200080598672
4 -0.7568024953079282
5 -0.9589242746631385
6 -0.27941549819892586
7 0.6569865987187891
8 0.9893582466233818
9 0.4121184852417566
10 -0.5440211108893698
  • d.io().column("Number","SIN")
Number SIN
1 0.8414709848078965
2 0.9092974268256817
3 0.1411200080598672
4 -0.7568024953079282
5 -0.9589242746631385
6 -0.27941549819892586
7 0.6569865987187891
8 0.9893582466233818
9 0.4121184852417566
10 -0.5440211108893698

Related Videos

Sine

See Also

References