**Not a subscriber?**Subscribe now.

**CoronaSDK 2016.2934**| Released: 24 Aug 2016, 9:19am | What's New | Download Now

You will be redirected to the new docs in a few seconds.

If you are certain you want to see the old docs, click cancel.

Cancel | Continue to new docs

## math.sin()

##### Description:

Returns the sine of an angle (assumed to be in radians).

##### Syntax:

`math.sin (x)`

##### Example:

-- move a circle along a path local myCircle = display.newCircle( 0, display.viewableContentHeight/2, 10 ) local t, p = 0, 0.7 myCircle:setFillColor(250,250,100) local function onFrame(event) myCircle.x = display.viewableContentWidth/2 + 100 * math.cos(10*t - p) myCircle.y = display.viewableContentHeight/2 - 100 * math.sin(10*t) t = t + 5 end Runtime:addEventListener( "enterFrame", onFrame )

##### Parameters:

`x`

A number.

##### Returns:

A number in the range [-1, 1].

##### Remarks:

##### Supported on operating systems and platforms for build numbers shown:

**Mac OS X:**Corona SDK 1.0**Windows:**Corona SDK 1.0**iOS:**Corona SDK 1.0**Android:**Corona SDK 2.0

### Replies

Posted on Tue, 2012-10-23 06:35

#2
could anyone tell me the relationship b/w the command t = t + 5 and math.sin (10*t)

if you change either, the image starts moving, vibrating in unexpected ways.

using the above code, how can i change the radius of motion of an object, and speed etc?