Use the MediaWiki extension for JSXGraph: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
<jsxgraph height="500" width="600" > | <jsxgraph height="500" width="600" > | ||
var a = brd.createElement('slider', [[1,-1],[5,-1],[0,1,4]]); | var a = brd.createElement('slider', [[1,-1],[5,-1],[0,1,4]]); | ||
var b = brd.createElement('slider', [[1,-2],[5,-2],[0,0.25,4]]); | |||
var c = brd.createElement('curve', [function(phi){a.Value()+b.Value()*phi; }, [0, 0],'phi',0, 8*Math.PI], | |||
{curveType:'polar', strokewidth:4}); | |||
</jsxgraph> | </jsxgraph> | ||
Revision as of 19:21, 18 February 2009
An extension to include JSXgraph in MediaWiki is under development.
To display the above example, a GEONExT file has to be uploaded and the following code has to be included in a MediWiki page:
<jsxgraph height="500" width="600" filename="Wuerfel_drehbar_dreieck.gxt" />