Slider and function plot: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
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 = | 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(); | ||
}]); | }]); |