Difference between revisions of "Continuous function II"

From JSXGraph Wiki
Jump to navigationJump to search
Line 15: Line 15:
 
  s = board.createElement('slider', [0,-2,4,0,1,1],{name:' '});
 
  s = board.createElement('slider', [0,-2,4,0,1,1],{name:' '});
  
  x1 = board.createElement('glider', [-2,0,b1axisx],{name:'a'});
+
  y1 = board.createElement('glider', [-2,0,b1axisx],{name:'a'});
  x2 = board.createElement('point', [function(){return x1.X()-s.X();},0],{style:7,name:' '});
+
  y2 = board.createElement('point', [function(){return y1.X()-s.X();},0],{style:7,name:' '});
  x3 = board.createElement('point', [function(){return x1.X()+s.X();},0],{style:7,name:' '});
+
  y3 = board.createElement('point', [function(){return y1.X()+s.X();},0],{style:7,name:' '});
  y1 = board.createElement('point', [function(){return x1.X();},function(){return f(x1.X());}],{style:7,name:'f(a)'});
+
 
  y2 = board.createElement('point', [function(){return x2.X();},function(){return f(x2.X());}],{style:7,name:' '});
+
  x1 = board.createElement('point', [function(){return f(y1.Y());},function(){return y1.Y();}],{style:7,name:'f(a)'});
  y3 = board.createElement('point', [function(){return x3.X();},function(){return f(x3.X());}],{style:7,name:' '});
+
  x2 = board.createElement('point', [function(){return f(y2.Y());},function(){return y2.Y();}],{style:7,name:' '});
 +
  x3 = board.createElement('point', [function(){return f(y3.X());},function(){return y3.Y();}],{style:7,name:' '});
 +
 
 
  v1 = board.createElement('line', [x1,y1],{strokeColor:'gray',dash:2,strokeWidth:1,straightFirst:false,straightLast:false});
 
  v1 = board.createElement('line', [x1,y1],{strokeColor:'gray',dash:2,strokeWidth:1,straightFirst:false,straightLast:false});
 
  v2 = board.createElement('line', [x2,y2],{strokeColor:'gray',dash:2,strokeWidth:1});
 
  v2 = board.createElement('line', [x2,y2],{strokeColor:'gray',dash:2,strokeWidth:1});

Revision as of 19:00, 10 January 2009

References