<iframe src="http://jsxgraph.uni-bayreuth.de/share/iframe/euler-line-jessiecode" style="border: 1px solid black; overflow: hidden; width: 550px; aspect-ratio: 55 / 65;" name="JSXGraph example: Euler line: JessieCode" allowfullscreen ></iframe>
<script type="text/jessiecode" width="600px" height="600px" axis="true"> $board.setView([-1.5, 2, 1.5, -1]); // Triangle ABC A = point(1, 0); B = point(-1, 0); C = point(0.2, 1.5); pol = polygon(A,B,C) << fillColor: '#FFFF00', borders: << strokeWidth: 2, strokeColor: '#009256' >> >>; // Perpendiculars and orthocenter i1 pABC = perpendicular(pol.borders[0], C); pBCA = perpendicular(pol.borders[1], A); pCAB = perpendicular(pol.borders[2], B); i1 = intersection(pABC, pCAB, 0); // Midpoints of segments mAB = midpoint(A, B); mBC = midpoint(B, C); mCA = midpoint(C, A); // Line bisectors and centroid i2 ma = segment(mBC, A); mb = segment(mCA, B); mc = segment(mAB, C); i2 = intersection(ma, mc, 0); // Circumcircle and circumcenter c = circumcircle(A, B, C) << strokeColor: '#000000', dash: 3, strokeWidth: 1, center: << name: 'i_3', withlabel:true, visible: true >> >>; // Euler line euler = line(i1, i2) << dash:1, strokeWidth: 2, strokeColor:'#901B77' >>; </script> <div id="board-0-wrapper" class="jxgbox-wrapper " style="width: 100%; "> <div id="board-0" class="jxgbox" style="aspect-ratio: 1 / 1; width: 100px;" data-ar="1 / 1"></div> </div> <script type = "text/javascript"> /* This example is licensed under a Creative Commons Attribution 4.0 International License. https://creativecommons.org/licenses/by/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits. */ const BOARDID = 'board-0'; // Dummy example, please ignore const board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-5, 5, 5, -5] }); </script>
/* This example is licensed under a Creative Commons Attribution 4.0 International License. https://creativecommons.org/licenses/by/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits. */ const BOARDID = 'your_div_id'; // Insert your id here! // Dummy example, please ignore const board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-5, 5, 5, -5] });
<script type="text/jessiecode" width="600px" height="600px" axis="true"> $board.setView([-1.5, 2, 1.5, -1]); // Triangle ABC A = point(1, 0); B = point(-1, 0); C = point(0.2, 1.5); pol = polygon(A,B,C) << fillColor: '#FFFF00', borders: << strokeWidth: 2, strokeColor: '#009256' >> >>; // Perpendiculars and orthocenter i1 pABC = perpendicular(pol.borders[0], C); pBCA = perpendicular(pol.borders[1], A); pCAB = perpendicular(pol.borders[2], B); i1 = intersection(pABC, pCAB, 0); // Midpoints of segments mAB = midpoint(A, B); mBC = midpoint(B, C); mCA = midpoint(C, A); // Line bisectors and centroid i2 ma = segment(mBC, A); mb = segment(mCA, B); mc = segment(mAB, C); i2 = intersection(ma, mc, 0); // Circumcircle and circumcenter c = circumcircle(A, B, C) << strokeColor: '#000000', dash: 3, strokeWidth: 1, center: << name: 'i_3', withlabel:true, visible: true >> >>; // Euler line euler = line(i1, i2) << dash:1, strokeWidth: 2, strokeColor:'#901B77' >>; </script>
// Define the id of your board in BOARDID // Dummy example, please ignore const board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-5, 5, 5, -5] });
This example is licensed under a Creative Commons Attribution 4.0 International License. Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits.