Difference between revisions of "Slider and function plot"

From JSXGraph Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<jsxgraph width="600" height="600">
 
<jsxgraph width="600" height="600">
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-10, 10, 10, -10], axis:true});         
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-10, 10, 10, -10], axis:true});         
var a = brd.create('slider',[[3,-5],[8,-5],[-5,1,5]], {name:'a'});
+
var a = brd.create('slider',[[2,-5],[7,-5],[-5,1,5]], {name:'a'});
var b = brd.create('slider',[[3,-6],[8,-6],[-5,0,5]], {name:'b'});
+
var b = brd.create('slider',[[2,-6],[7,-6],[-5,0,5]], {name:'b'});
var c = brd.create('slider',[[3,-7],[8,-7],[-5,0,5]], {name:'c'});
+
var c = brd.create('slider',[[2,-7],[7,-7],[-5,0,5]], {name:'c'});
  
 
var f = brd.create('functiongraph',[function(x){
 
var f = brd.create('functiongraph',[function(x){

Revision as of 11:19, 12 January 2015