# Sines

**URL:** <https://forum.kirupa.com/t/sines/176162>\
**Category:** flash\
**Created:** [January 20, 2006, 9:28pm UTC](https://forum.kirupa.com/t/sines/176162 "2006-01-20T21:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ice987](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@ice987](https://forum.kirupa.com/u/ice987)\
**Post date:** [January 20, 2006, 9:28pm UTC](https://forum.kirupa.com/t/sines/176162/1 "2006-01-20T21:28:38Z")

</div>

Hi

I’m trying to create a loop which generates a single series of sine results ranging from 0 to 1 based on 100 loops ( ie 0 ,0.011 ,0.1111…up to 1 in a single run)

The results I want start at 0 and increment in a series up to 1 and then stop. I suppose this would be one half of a sine wave

I have tried the following but it goes from 0 to 1 ,1 to 0 , 0 to 1 etc whereas I want a single straight run of 100 values from 0 to 1

I tried :

for(var i:Number=0;i\<=100;i++){

trace((0.5\*Math.sin(i)) + 0.5);

}

This does not work. Can someone correct it
