Slider: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 10: Line 10:
ax = b.createElement('axis', [[0,0], [1,0]], {});
ax = b.createElement('axis', [[0,0], [1,0]], {});
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],[1,1,5]]);
var a = b.createElement('point',[
var a = b.createElement('point',[
                       function(){return s.Value()-5;},
                       function(){return s.Value()-;},2
                       function(){return 1/s.Value();}
                       function(){return 1/s.Value();}
                       ]);
                       ]);
</script>
</script>
</html>
</html>

Revision as of 13:31, 25 January 2009

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