plot 1 + (2 (a - 1) abs(sin^(-1)(sin((2 pi (x - 1))/(4 a - 4)))))/pi, x=1..10, a=3