# sine of a number line

• May 8th 2010, 12:31 PM
baf1319
sine of a number line
I have a number line set up from 0 to 1 divided into 50 chunks. I want to take the sine of this line so that the middle is zero and the ends (0 and 1) are both 1. In other words, I want my life to go from 3pi/2 to pi/2 instead of 0 to 1. How can I do this?

thanks
• May 9th 2010, 01:25 AM
CaptainBlack
Quote:

Originally Posted by baf1319
I have a number line set up from 0 to 1 divided into 50 chunks. I want to take the sine of this line so that the middle is zero and the ends (0 and 1) are both 1. In other words, I want my life to go from 3pi/2 to pi/2 instead of 0 to 1. How can I do this?

thanks

You want to map the interval $[0,1]$ onto $[a,b]$, so you want:

$f(x)=x\times(b-a)-a$

so $f:[0,1] \to [a,b]$

-nothing to do with trig.

CB
• May 9th 2010, 06:35 AM
baf1319
thank you!