0.5sin(2asin(√2)-pi/2)