Semicubical parabola: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
var p = brd.create('curve', | var p = brd.create('curve', | ||
[function(t){ return t*t;}, | [function(t){ return t*t;}, | ||
function(t){ return a.Value()*t*t*t;} | function(t){ return a.Value()*t*t*t;}, | ||
-2, 2 | |||
], | ], | ||
{strokeWidth:2, strokeColor:'black'}); | {strokeWidth:2, strokeColor:'black'}); |
Revision as of 09:33, 13 January 2011
A semicubical parabola is a curve defined parametrically as
- [math]\displaystyle{ x = t^2 }[/math]
- [math]\displaystyle{ y = at^3 }[/math]
References
The underlying JavaScript code
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-1,2,3,-2], keepaspectratio:true, axis:true});
brd.suspendUpdate();
var a = brd.create('slider',[[-1,1.8],[1,1.8],[-5,0.20,5]], {name:'a'});
var p = brd.create('curve',
[function(t){ return t*t;},
function(t){ return a.Value()*t*t*t;}
],
{strokeWidth:2, strokeColor:'black'});
brd.unsuspendUpdate();