How can I create a Sine Function using the Parametric Curve Feature Script?

I am a CAD teacher using Onshape and doing a cross-curricular project with a math class. We are hoping to use your Parametric Curve feature script to create lines following equations in a sketch. We got your feature script to work for just y = x^2, but we want to do a sine function as well and cannot get that to work. I assume it is simply a problem in the specific writing/text set-up of the function. I shared the Onshape doc where we are working on this. I appreciate any help you can provide. 
Many thanks,
Betsy Giovanardi


https://cad.onshape.com/documents/c459443aa4672ed472c51f09/w/23cbb31990b5dd90bb82156a/e/c292d368e2c95295a7c3b243?renderMode=0&uiState=628bab3d8fe81703a2596633

Answers