Sequences of functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 4: Line 4:
var f = function(x){ return Math.pow(x,Math.floor(n.Value())); }
var f = function(x){ return Math.pow(x,Math.floor(n.Value())); }
var plot = brd.createElement('functiongraph',[f,0,1], {strokeWidth:1});
var plot = brd.createElement('functiongraph',[f,0,1], {strokeWidth:1});
brd.createElement('text',[0.2,0.7,function(){return 'x<sup>'+Math.floor(n.Value())+'</sup>';}]);
brd.createElement('text',[0.2,0.7,function(){return 'f(x)=x<sup>'+Math.floor(n.Value())+'</sup>';}],
  {fontSize:20});


</jsxgraph>
</jsxgraph>

Revision as of 20:47, 11 June 2009

The underlying JavaScript code