% this function returns the sin of its argument function ans = intsin(theta,b,a) ans = b*sin(a*theta)