Difference between revisions of "Power functions"

From JSXGraph Wiki
Jump to navigationJump to search
Line 13: Line 13:
 
var n = b.createElement('slider',[-5,-2,10,-5,5,0],{name:'n'});
 
var n = b.createElement('slider',[-5,-2,10,-5,5,0],{name:'n'});
 
var m = b.createElement('slider',[1.0,-4,9,1,10,1],{name:'m'});
 
var m = b.createElement('slider',[1.0,-4,9,1,10,1],{name:'m'});
b.createElement('curve', [function(t){ return t; }, function(t){ return b.pow(t,n.X()/m.X()); }, "t"],{strokeColor:#ff0000});
+
b.createElement('curve', [function(t){ return t; }, function(t){ return b.pow(t,n.X()/m.X()); }, "t"],{strokeColor:'#ff0000'});
 
//
 
//
 
//
 
//

Revision as of 13:53, 15 December 2008