plot (sin((x -0.5) * pi) + 1) * 0.5 from x = 0 to 1