Help to Change X- Axis Value

Wrong syntax.
var xnew = adh * Math.sin * (radians(deg))

Correct syntax
var xnew = adh * Math.sin(radians(deg))