# Difference between revisions of "Nowhere differentiable continuous function"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 7: | Line 7: | ||

var i, s=0.0, n = N.Value(), aa= a.Value(), bb = b.Value(); | var i, s=0.0, n = N.Value(), aa= a.Value(), bb = b.Value(); | ||

for (i=0; i<n; i++) { | for (i=0; i<n; i++) { | ||

− | s += Math.pow( | + | s += Math.pow(aa,i)*Math.cos(Math.pow(bb,i)*Math.PI*x); |

} | } | ||

− | |||

return s; | return s; | ||

}; | }; |