Error getting tags :
error 404Error getting tags :
error 404 sin | revDocs | RunRev
Product Edition
Version
sin
Basics
Type
Function
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the sine of an angle (in radians).
Examples

the sin of -pi/2 -- returns -1
sin(the startAngle of graphic "Pointer")

Use the sin function to find the sine of an angle.

Parameters:

The angle is a positive or negative number, or an expression that evaluates to a number.

Value:

The sin function returns a number between -1 and 1.

The sin function repeats every 2*pi radians:

` sin(x) = sin(x + 2 * pi)`

`for any value of x.`

`The sin function requires its input to be in radians. To provide an angle in degrees, use the following custom function:`

` function sinInDegrees angleInDegrees`

` return sin(angleInDegrees * pi / 180)`

` end sinInDegrees`

``` ```
``` ```
``` Lessons User Comments Your Comment Click here to log in and post a comment ```
``` ```
``` ```
``` Store LiveCode LiveCode Features Mobile Embedded LiveCode Desktop Server Developer Program Solutions SMEs Education Microsite Enterprise Game Academy Microsite Showcase Showcase Case Studies Get Started Developers Lessons & Tutorials Documentation Community Resources Developer Conference Newsletters Company About Us Company News Blog Management Team Consultants Careers Press Room Contact us Policies EULA Privacy Policy Environmental Policy Blog Copyright RunRev Ltd 2009 All rights reserved. ```
``` ```
``` ```
``` ```
``` ```
``` ```