Hyperbola III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5, 5, 5, -5], axis: true, showClearTraces: true}); | var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5, 5, 5, -5], axis: true, showClearTraces: true}); | ||
const | const sqrt5 = Math.sqrt(5); | ||
var f1 = board.create('glider', [- | var f1 = board.create('glider', [-sqrt5, 0, board.defaultAxes.x], {name:"f'"}); | ||
var f2 = board.create('glider', [ | var f2 = board.create('glider', [sqrt5, 0, board.defaultAxes.x], {name:"f"}); | ||
var hyp = board.create('hyperbola', [f1, f2, [4,3]]); | var hyp = board.create('hyperbola', [f1, f2, [4,3]]); | ||