Use the MediaWiki extension for JSXGraph: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Download the MediaWiki extension [http://www.mediawiki.org/wiki/Extension:JSXGraph http://www.mediawiki.org/wiki/Extension:JSXGraph here].
Download the MediaWiki extension [https://github.com/jsxgraph/jsxgraph from github].


<jsxgraph height="500" width="600" board="board" box="mybox">
<jsxgraph height="500" width="600" board="board" box="mybox">
Line 9: Line 9:
</jsxgraph>
</jsxgraph>
<source lang="xml">
<source lang="xml">
<script type="text/javascript" src="/distrib/GeonextReader.js"></script>
<jsxgraph height="500" width="600" board="board" box="mybox">
<jsxgraph height="500" width="600" board="board" box="jxgbox2">
board = JXG.JSXGraph.initBoard('mybox', {boundingbox: [-10, 10, 14, -10]});
board = JXG.JSXGraph.initBoard('jxgbox2', {boundingbox: [-10, 10, 14, -10]});
var a = board.create('slider', [[1,8],[5,8],[0,1,4]]);
var a = board.create('slider', [[1,8],[5,8],[0,1,4]]);
var b = board.create('slider', [[1,9],[5,9],[0,0.25,4]]);
var b = board.create('slider', [[1,9],[5,9],[0,0.25,4]]);

Latest revision as of 15:31, 25 January 2024

Download the MediaWiki extension from github.

<jsxgraph height="500" width="600" board="board" box="mybox">
board = JXG.JSXGraph.initBoard('mybox', {boundingbox: [-10, 10, 14, -10]});
var a = board.create('slider', [[1,8],[5,8],[0,1,4]]);
var b = board.create('slider', [[1,9],[5,9],[0,0.25,4]]);
var c = board.create('curve', [function(phi){return a.Value()+b.Value()*phi; }, [0, 0], 0, 8*Math.PI],
{curveType:'polar', strokewidth:4});      
</jsxgraph>