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 sq5 = Math.sqrt(5); | ||
var f1 = board.create(' | var f1 = board.create('point', [-sq5, 0, {name:"f'"}); | ||
var f2 = board.create(' | var f2 = board.create('point', [ sq5, 0, {name:"f"}); | ||
var hyp = board.create('hyperbola', [f1, f2, | var p = board.create('point', [ 4, \math.sqrt(3), {name:"p"}); | ||
var hyp = board.create('hyperbola', [f1, f2, p]); | |||