Draggable exponential function: Difference between revisions

From JSXGraph Wiki
(Created page with "<jsxgraph width="400" height="400" box="box1"> var b = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 20, 5, -1], axis:true}); </jsxgraph>")
 
No edit summary
Line 1: Line 1:
<jsxgraph width="400" height="400" box="box1">
<jsxgraph width="400" height="400" box="box1">
var b = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 20, 5, -1], axis:true});
var board = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 20, 5, -1], axis:true});
 
var p = board.create('point', [1, 1]);
var graph = board.create('functiongraph', [
        function(x) {
            var a = JXG.Math.log(p.Y(), p.X());
            return Math.exp(a * x);
        }]);
             
</jsxgraph>
</jsxgraph>

Revision as of 09:22, 16 February 2016