Continuous function II: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 5: Line 5:
<div id="box" class="jxgbox" style="width:600px; height:500px;"></div>
<div id="box" class="jxgbox" style="width:600px; height:500px;"></div>
<script language="JavaScript">
<script language="JavaScript">
  board = JXG.JSXGraph.initBoard('box', {originX: 300, originY: 250, unitX: 50, unitY: 50});
  board = JXG.JSXGraph.initBoard('box', {originX: 50, originY: 400, unitX: 50, unitY: 50});
  board.suspendUpdate();
  board.suspendUpdate();
  b1axisx = board.createElement('axis', [[0,0], [1,0]], {});
  b1axisx = board.createElement('axis', [[0,0], [1,0]], {});
Line 13: Line 13:
  graph = board.createElement('curve', ['x',f, 'x', 0.00001, 15], {curveType:'graph',strokeColor:'#00ff00'});
  graph = board.createElement('curve', ['x',f, 'x', 0.00001, 15], {curveType:'graph',strokeColor:'#00ff00'});


  s = board.createElement('slider', [0,-2,4,0,1,1],{name:' '});
  s = board.createElement('slider', [0,-1,4,0,1,1],{name:' '});


  y1 = board.createElement('glider', [0,3,b1axisy],{name:'f(a)'});
  y1 = board.createElement('glider', [0,3,b1axisy],{name:'f(a)'});

Revision as of 17:10, 10 January 2009

References