Rational functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 3: Line 3:
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div style="float:left"><form><input type="button" value="Add point" onClick="addPoint1()"></form>
<div><form><input type="button" value="Add point" onClick="addPoint1()"></form>
<div id="box1" class="jxgbox" style="width:300px; height:300px;"></div></div>
<div id="box1" class="jxgbox" style="width:600px; height:200px;"></div></div>
<form><input type="button" value="Add point" onClick="addPoint2()"></form>
<form><input type="button" value="Add point" onClick="addPoint2()"></form>
<div><div id="box2" class="jxgbox" style="width:300px; height:300px;"></div></div>
<div><div id="box2" class="jxgbox" style="width:600px; height:200px;"></div></div>
<div id="box3" class="jxgbox" style="width:600px; height:400px;"></div>
<div id="box3" class="jxgbox" style="width:600px; height:400px;"></div>
<script language="JavaScript">
<script language="JavaScript">
         board = JXG.JSXGraph.initBoard('box1', {originX: 150, originY: 200, unitX: 30, unitY: 25});
         board = JXG.JSXGraph.initBoard('box1', {originX: 150, originY: 100, unitX: 30, unitY: 25});
         // Axes
         // Axes
         b1axisx = board.createElement('axis', [[0,0], [1,0]], {});
         b1axisx = board.createElement('axis', [[0,0], [1,0]], {});
Line 43: Line 43:
         }
         }


         board2 = JXG.JSXGraph.initBoard('box2', {originX: 150, originY: 200, unitX: 30, unitY: 25});
         board2 = JXG.JSXGraph.initBoard('box2', {originX: 150, originY: 100, unitX: 30, unitY: 25});
         // Axes
         // Axes
         b1axisx2 = board2.createElement('axis', [[0,0], [1,0]], {});
         b1axisx2 = board2.createElement('axis', [[0,0], [1,0]], {});

Revision as of 14:41, 15 December 2008