Triangle axiom halving: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) (Created page with "<html> <script type="text/javascript" src="/distrib/MathJax/MathJax.js"></script> </html> Axiom (A2) "triangle rule" for affine spaces. <jsxgraph width="500" height="500">...") |
A WASSERMANN (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
</html> | </html> | ||
Midpoint | |||
<jsxgraph width="500" height="500"> | <jsxgraph width="500" height="500"> | ||
JXG.Options.label.autoPosition = true; | JXG.Options.label.autoPosition = true; | ||
JXG.Options.text.useMathJax = true; | JXG.Options.text.useMathJax = true; | ||
JXG.Options.text.fontSize = | JXG.Options.text.fontSize = 24; | ||
var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], showCopyright:false, showNavigation:false}); | var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], showCopyright:false, showNavigation:false}); | ||
Line 19: | Line 19: | ||
var pr = board.create('arrow', [p, r], {withLabel: true, name:'\\(\\vec{v}\\)', label:{position: 'top', parse: false}, lastArrow: {type: 4, size: 8}}); | var pr = board.create('arrow', [p, r], {withLabel: true, name:'\\(\\vec{v}\\)', label:{position: 'top', parse: false}, lastArrow: {type: 4, size: 8}}); | ||
var pq = board.create('arrow', [p, q], {withLabel: true, name:'\\(\\vec{u}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | var pq = board.create('arrow', [p, q], {withLabel: true, name:'\\(\\vec{u}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | ||
var rq = board.create('arrow', [q | var rq = board.create('arrow', [r, q], {}); | ||
var ps = board.create('arrow', [p, s], {withLabel: true, name:'\\(\\frac{1}{2}(\\vec{u} + \\vec{v}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | var ps = board.create('arrow', [p, s], {withLabel: true, name:'\\(\\frac{1}{2}(\\vec{u} + \\vec{v})\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | ||
</jsxgraph> | </jsxgraph> | ||
Line 29: | Line 29: | ||
JXG.Options.label.autoPosition = true; | JXG.Options.label.autoPosition = true; | ||
JXG.Options.text.useMathJax = true; | JXG.Options.text.useMathJax = true; | ||
JXG.Options.text.fontSize = | JXG.Options.text.fontSize = 24; | ||
var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], showCopyright:false, showNavigation:false}); | var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], showCopyright:false, showNavigation:false}); | ||
var p = board.create('point', [-3,-3], {name:' | var p = board.create('point', [-3,-3], {name:'\\(p_0\\)'}); | ||
var q = board.create('point', [ | var q = board.create('point', [3, -3], {name:'\\(q\\)'}); | ||
var r = board.create('point', [ | var r = board.create('point', [2, 2], {name:'\\(r\\)'}); | ||
var s = board.create('midpoint', [q, r], {name:'\\(s\\)'}); | |||
var | var pr = board.create('arrow', [p, r], {withLabel: true, name:'\\(\\vec{v}\\)', label:{position: 'top', parse: false}, lastArrow: {type: 4, size: 8}}); | ||
var | var pq = board.create('arrow', [p, q], {withLabel: true, name:'\\(\\vec{u}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | ||
var | var rq = board.create('arrow', [r, q], {}); | ||
var ps = board.create('arrow', [p, s], {withLabel: true, name:'\\(\\frac{1}{2}(\\vec{u} + \\vec{v})\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | |||
</source> | </source> | ||
[[Category:Examples]] | [[Category:Examples]] | ||
[[Category:Geometry]] | [[Category:Geometry]] |
Latest revision as of 15:41, 12 April 2021
Midpoint
The underlying JavaScript code
JXG.Options.label.autoPosition = true;
JXG.Options.text.useMathJax = true;
JXG.Options.text.fontSize = 24;
var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], showCopyright:false, showNavigation:false});
var p = board.create('point', [-3,-3], {name:'\\(p_0\\)'});
var q = board.create('point', [3, -3], {name:'\\(q\\)'});
var r = board.create('point', [2, 2], {name:'\\(r\\)'});
var s = board.create('midpoint', [q, r], {name:'\\(s\\)'});
var pr = board.create('arrow', [p, r], {withLabel: true, name:'\\(\\vec{v}\\)', label:{position: 'top', parse: false}, lastArrow: {type: 4, size: 8}});
var pq = board.create('arrow', [p, q], {withLabel: true, name:'\\(\\vec{u}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}});
var rq = board.create('arrow', [r, q], {});
var ps = board.create('arrow', [p, s], {withLabel: true, name:'\\(\\frac{1}{2}(\\vec{u} + \\vec{v})\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}});