Difference between revisions of "Continuous functions"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
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 id="box" class="jxgbox" style="width:600px; height: | + | <div id="box" class="jxgbox" style="width:600px; height:500px;"></div> |
<script language="JavaScript"> | <script language="JavaScript"> | ||
− | board = JXG.JSXGraph.initBoard('box1', {originX: 300, originY: | + | board = JXG.JSXGraph.initBoard('box1', {originX: 300, originY: 250, unitX: 30, unitY: 25}); |
b1axisx = board.createElement('axis', [[0,0], [1,0]], {}); | b1axisx = board.createElement('axis', [[0,0], [1,0]], {}); | ||
b1axisy = board.createElement('axis', [[0,0], [0,1]], {}); | b1axisy = board.createElement('axis', [[0,0], [0,1]], {}); | ||
− | graph = board.createElement('curve', ['x', | + | graph = board.createElement('curve', ['x', |
function(x) { | function(x) { | ||
if (x<1) { | if (x<1) { |
Revision as of 11:47, 17 December 2008