sine of a number line

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

CaptainBlack

MHF Hall of Fame
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 $$\displaystyle [0,1]$$ onto $$\displaystyle [a,b]$$, so you want:

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

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

-nothing to do with trig.

CB

thank you!