Differentiability: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<jsxgraph box="box" width="600" height="400"> | <jsxgraph box="box" width="600" height="400"> | ||
JXG.Options.text.useMathJax = true; | |||
board = JXG.JSXGraph.initBoard('box', { | board = JXG.JSXGraph.initBoard('box', { | ||
boundingbox: [-5, 10, 7, -6], | boundingbox: [-5, 10, 7, -6], | ||
Line 20: | Line 21: | ||
var line = board.create('line',[fx0, fx],{strokeColor:'#ff0000',dash:2}); | var line = board.create('line',[fx0, fx],{strokeColor:'#ff0000',dash:2}); | ||
var txt = board.create('text', [2, 4, () | var txt = board.create('text', [2, 4, function() { return '\\[ \\frac{' + fx.Y().toFixed(2) + '-' + fx0.().toFixed(2) +'}{' + + fx.X().toFixed(2) + '-' + fx0.X().toFixed(2) +'}\\]'}]); | ||
/* | /* |