Difference between revisions of "Nowhere differentiable continuous function"

From JSXGraph Wiki
Jump to navigationJump to search
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,5,50]], {name:'b'});  
+
  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(aa,bb,n);
+
console.log(Math.pow(a,0),Math.pow(b,0),*Math.PI*x));
 
             return s;
 
             return s;
 
         };
 
         };

Revision as of 19:08, 19 September 2011