Nowhere differentiable continuous function: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="500" height="500" box="box">
<jsxgraph width="500" height="500" box="box">
  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.55,1]], {name:'a'});
  var b = bd.create('slider', [[0.5,1.5],[2.5,1.5],[0,30,100]], {name:'b'});  
  var b = bd.create('slider', [[0.5,1.5],[2.5,1.5],[0,20,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,30]], {name:'N'});  
  var f = function(x){
  var f = function(x){
             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();  
Line 11: Line 11:
             return s;
             return s;
         };
         };
  var c = bd.create('functiongraph', [f], {doAdvancedPlot:false, numberPointsHigh:20000, numberPointsLow:5000});
  var c = bd.create('functiongraph', [f], {doAdvancedPlot:false, numberPointsHigh:20000, numberPointsLow:5000, strokeWidth:1});


</jsxgraph>
</jsxgraph>

Revision as of 17:57, 19 September 2011