# Math Help - sine of a number line

1. ## 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

2. 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

3. thank you!