# Difference between revisions of "Draggable exponential function"

From JSXGraph Wiki

A WASSERMANN (talk | contribs) (Created page with "<jsxgraph width="400" height="400" box="box1"> var b = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 20, 5, -1], axis:true}); </jsxgraph>") |
A WASSERMANN (talk | contribs) |
||

Line 1: | Line 1: | ||

<jsxgraph width="400" height="400" box="box1"> | <jsxgraph width="400" height="400" box="box1"> | ||

− | var | + | 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> |