changing sin(pi*x) into sin_pi(x)