Nowhere differentiable continuous function: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
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; | ||
}; | }; |