<iframe src="http://jsxgraph.org/share/iframe/three-touching-circles" style="border: 1px solid black; overflow: hidden; width: 550px; aspect-ratio: 55 / 65;" name="JSXGraph example: Three touching circles" allowfullscreen ></iframe>
<div id="board-0-wrapper" class="jxgbox-wrapper " style="width: 100%; "> <div id="board-0" class="jxgbox" style="aspect-ratio: 1 / 1; width: 100%;" data-ar="1 / 1"></div> </div> <script type = "text/javascript"> /* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits. */ const BOARDID = 'board-0'; var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-2, 5, 5, -2], keepaspectratio: true }); var A = board.create('point', [0, 0]), B = board.create('point', [2, 0]), C = board.create('point', [1, 2]), a1 = board.create('segment', [A, B], { name: 'a_1', withLabel: true, label: { position: '0.2fr right' } }), a2 = board.create('segment', [B, C], { name: 'a_2', withLabel: true, label: { position: '0.2fr right' } }), a3 = board.create('segment', [C, A], { name: 'a_3', withLabel: true, label: { position: '0.2fr right' } }), c1 = board.create('circle', [A, () => (C.Dist(A) - B.Dist(C) + A.Dist(B)) / 2.0]), c2 = board.create('circle', [B, () => A.Dist(B) - c1.Radius()]), c3 = board.create('circle', [C, () => B.Dist(C) - c2.Radius()]); </script>
/* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/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! var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-2, 5, 5, -2], keepaspectratio: true }); var A = board.create('point', [0, 0]), B = board.create('point', [2, 0]), C = board.create('point', [1, 2]), a1 = board.create('segment', [A, B], { name: 'a_1', withLabel: true, label: { position: '0.2fr right' } }), a2 = board.create('segment', [B, C], { name: 'a_2', withLabel: true, label: { position: '0.2fr right' } }), a3 = board.create('segment', [C, A], { name: 'a_3', withLabel: true, label: { position: '0.2fr right' } }), c1 = board.create('circle', [A, () => (C.Dist(A) - B.Dist(C) + A.Dist(B)) / 2.0]), c2 = board.create('circle', [B, () => A.Dist(B) - c1.Radius()]), c3 = board.create('circle', [C, () => B.Dist(C) - c2.Radius()]);
<jsxgraph width="100%" aspect-ratio="1 / 1" title="Three touching circles" description="This construction was copied from JSXGraph examples database: BTW HERE SHOULD BE A GENERATED LINKuseGlobalJS="false"> /* This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/ Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits. */ var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-2, 5, 5, -2], keepaspectratio: true }); var A = board.create('point', [0, 0]), B = board.create('point', [2, 0]), C = board.create('point', [1, 2]), a1 = board.create('segment', [A, B], { name: 'a_1', withLabel: true, label: { position: '0.2fr right' } }), a2 = board.create('segment', [B, C], { name: 'a_2', withLabel: true, label: { position: '0.2fr right' } }), a3 = board.create('segment', [C, A], { name: 'a_3', withLabel: true, label: { position: '0.2fr right' } }), c1 = board.create('circle', [A, () => (C.Dist(A) - B.Dist(C) + A.Dist(B)) / 2.0]), c2 = board.create('circle', [B, () => A.Dist(B) - c1.Radius()]), c3 = board.create('circle', [C, () => B.Dist(C) - c2.Radius()]); </jsxgraph>
// Define the id of your board in BOARDID var board = JXG.JSXGraph.initBoard(BOARDID, { boundingbox: [-2, 5, 5, -2], keepaspectratio: true }); var A = board.create('point', [0, 0]), B = board.create('point', [2, 0]), C = board.create('point', [1, 2]), a1 = board.create('segment', [A, B], { name: 'a_1', withLabel: true, label: { position: '0.2fr right' } }), a2 = board.create('segment', [B, C], { name: 'a_2', withLabel: true, label: { position: '0.2fr right' } }), a3 = board.create('segment', [C, A], { name: 'a_3', withLabel: true, label: { position: '0.2fr right' } }), c1 = board.create('circle', [A, () => (C.Dist(A) - B.Dist(C) + A.Dist(B)) / 2.0]), c2 = board.create('circle', [B, () => A.Dist(B) - c1.Radius()]), c3 = board.create('circle', [C, () => B.Dist(C) - c2.Radius()]);
This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License. Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits.