Continuous functions: Difference between revisions

From JSXGraph Wiki
(New page: <html> <link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" /> <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/pro...)
 
No edit summary
Line 8: Line 8:
  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', function(x) {
  graph = board.createElement('curve', ['x', #
    function(x) {
       if (x<1) {
       if (x<1) {
           return 0.5*x*x;
           return 0.5*x*x;
       } else {
       } else {
         return x+1;
         return x+1;
       }, 'x'], {curveType:'graph'});
       }
      }, 'x'], {curveType:'graph'});


</script>
</script>

Revision as of 10:47, 17 December 2008

References

The underlying JavaScript source code