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 2: | Line 2: | ||
var bd = JXG.JSXGraph.initBoard('box', {axis:true, boundingbox: [-5, 3, 5, -3]}); | var bd = JXG.JSXGraph.initBoard('box', {axis:true, boundingbox: [-5, 3, 5, -3]}); | ||
var a = bd.create('slider', [[0.5,2],[2.5,2],[0,0.25,1]], {name:'a'}); | var a = bd.create('slider', [[0.5,2],[2.5,2],[0,0.25,1]], {name:'a'}); | ||
var b = bd.create('slider', [[0.5,1.5],[2.5,1.5],[0, | var b = bd.create('slider', [[0.5,1.5],[2.5,1.5],[0,30,100]], {name:'b'}); | ||
var N = bd.create('slider', [[0.5,1.0],[2.5,1.0],[0,1,50]], {name:'N'}); | var N = bd.create('slider', [[0.5,1.0],[2.5,1.0],[0,1,50]], {name:'N'}); | ||
var f = function(x){ | var f = function(x){ | ||
Line 9: | Line 9: | ||
s += Math.pow(a,i)*Math.cos(Math.pow(b,i)*Math.PI*x); | s += Math.pow(a,i)*Math.cos(Math.pow(b,i)*Math.PI*x); | ||
} | } | ||
console.log( | console.log(Math.pow(a,0),Math.pow(b,0),*Math.PI*x)); | ||
return s; | return s; | ||
}; | }; |