Difference between revisions of "Slider and function plot"

From JSXGraph Wiki
Jump to: navigation, search
Line 5: Line 5:
 
var c = brd.create('slider',[[3,-9],[8,-9],[-5,0,5]], {name:'c'});
 
var c = brd.create('slider',[[3,-9],[8,-9],[-5,0,5]], {name:'c'});
  
var f = b.create('functiongraph',[function(x){
+
var f = brd.create('functiongraph',[function(x){
 
             return a.Value()*x*x + b.Value()*x + c.Value();
 
             return a.Value()*x*x + b.Value()*x + c.Value();
 
         }]);
 
         }]);

Revision as of 11:17, 12 January 2015