Puoi aprire il codice e modificarlo
HELP

...
function f(x) { y = Math.PI*Math.PI/3; P=1; for(U=1; U<=500; U=U+1) {P=-P; y=y+4*P/(U*U)*Math.cos(x*U)}; return y }