Difference between revisions of "Draggable exponential function"

From JSXGraph Wiki
Jump to: navigation, search
(Created page with "<jsxgraph width="400" height="400" box="box1"> var b = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 20, 5, -1], axis:true}); </jsxgraph>")
 
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 10:22, 16 February 2016