Hyperbola III: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 9: Line 9:
const sq5 = Math.sqrt(5);
const sq5 = Math.sqrt(5);


var f1 = board.create('point', [0, -sq5], {name:"f'"});
var f1 = board.create('point', [0, -sq5], {name:"f'", fixed: true});
var f2 = board.create('point', [0, sq5], {name:"f"});
var f2 = board.create('point', [0, sq5], {name:"f", fixed: true});
var p  = board.create('point', [2, Math.sqrt(2)], {name:"p"}); //-0.9428
var p  = board.create('point', [2, Math.sqrt(2)], {name:"p", fixed: true});
 
var o = board.create('point', [0, 0], {withLabel:false, color: 'blue'});
var o = board.create('point', [0, 0], {withLabel:false, color: 'blue'});
var e1 = board.create('point', [1, 0], {withLabel:false, color: 'blue'});
var e1 = board.create('point', [1, 0], {withLabel:false, color: 'blue'});

Revision as of 15:12, 6 July 2021

The underlying JavaScript code