Slider: Difference between revisions

From JSXGraph Wiki
(New page: Sliders enable a convenient way to experiment with mathematical constructions. Example: <html> <link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph...)
 
No edit summary
Line 11: Line 11:
ay = b.createElement('axis', [[0,0], [0,1]], {});
ay = b.createElement('axis', [[0,0], [0,1]], {});
var s = b.createElement('slider',[[1,-3],[5,-3],[0,3,10]]);
var s = b.createElement('slider',[[1,-3],[5,-3],[0,3,10]]);
var a = b.createElement('point',[
                      function(){return s.Value()-5;},
                      function(){return 1/s.Value();
                      ]);
</script>
</script>
</html>
</html>

Revision as of 13:29, 25 January 2009

Sliders enable a convenient way to experiment with mathematical constructions. Example: