Inverse mapping of the power function: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <jsxgraph width="600" height="400" box="jxgbox"> | ||
b = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5.5, 7.5, 9.5, -2.5], axis: true}); | |||
b = JXG.JSXGraph.initBoard('jxgbox', { | |||
b.suspendUpdate(); | b.suspendUpdate(); | ||
var n = b.create('slider',[[-5,-1],[5,-1],[-5,1,5]],{name:'n'}); | |||
b.create('functiongraph', [function(t){ return t}],{strokeColor:'#000000',dash:1,strokeWidth:1}); | |||
var n = b. | b.create('functiongraph', [function(t){ return JXG.Math.pow(t,n.Value()); },0.001,8],{strokeColor:'#ff0000'}); | ||
b. | b.create('functiongraph', [function(t){ return JXG.Math.pow(t,1/n.Value()); },0.001,8],{strokeColor:'#ff0000',dash:2}); | ||
b. | |||
b. | |||
b.unsuspendUpdate(); | b.unsuspendUpdate(); | ||
</ | </jsxgraph> | ||
<source lang="javascript"> | <source lang="javascript"> | ||
b = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5.5, 7.5, 9.5, -2.5], axis: true}); | |||
b.suspendUpdate(); | |||
var n = b.create('slider',[[-5,-1],[5,-1],[-5,1,5]],{name:'n'}); | |||
b.create('functiongraph', [function(t){ return t}],{strokeColor:'#000000',dash:1,strokeWidth:1}); | |||
b.create('functiongraph', [function(t){ return JXG.Math.pow(t,n.Value()); },0.001,8],{strokeColor:'#ff0000'}); | |||
b.create('functiongraph', [function(t){ return JXG.Math.pow(t,1/n.Value()); },0.001,8],{strokeColor:'#ff0000',dash:2}); | |||
b.unsuspendUpdate(); | |||
</source> | </source> | ||
[[Category:Examples]] | [[Category:Examples]] | ||
[[Category:Calculus]] | [[Category:Calculus]] |
Latest revision as of 15:18, 20 February 2013
b = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5.5, 7.5, 9.5, -2.5], axis: true});
b.suspendUpdate();
var n = b.create('slider',[[-5,-1],[5,-1],[-5,1,5]],{name:'n'});
b.create('functiongraph', [function(t){ return t}],{strokeColor:'#000000',dash:1,strokeWidth:1});
b.create('functiongraph', [function(t){ return JXG.Math.pow(t,n.Value()); },0.001,8],{strokeColor:'#ff0000'});
b.create('functiongraph', [function(t){ return JXG.Math.pow(t,1/n.Value()); },0.001,8],{strokeColor:'#ff0000',dash:2});
b.unsuspendUpdate();