Aus Truth-Quark
(Unterschied zwischen Versionen)
Cdek (Diskussion | Beiträge) |
Cdek (Diskussion | Beiträge) |
||
Zeile 19: | Zeile 19: | ||
b.createElement('functiongraph', [function(t){ return (1/Math.sqrt(2*Math.PI))*Math.pow(2.71,-0.5*Math.pow(t,2)); }],{strokeColor:'#ff0000'}); | b.createElement('functiongraph', [function(t){ return (1/Math.sqrt(2*Math.PI))*Math.pow(2.71,-0.5*Math.pow(t,2)); }],{strokeColor:'#ff0000'}); | ||
</jsxgraph> | </jsxgraph> | ||
- | <{{ | + | <jsxgraph height='150' width='150' board='board' box='jxgbox'> |
- | + | var b = JXG.JSXGraph.initBoard('jxgbox', {originX: 75, originY: 75, unitX: 30, unitY: 50}); | |
- | <{{ | + | axisx = b.createElement('axis', [[0,0], [1,0]], {}); |
- | { | + | axisy = b.createElement('axis', [[0,0], [0,1]], {}); |
+ | b.createElement('functiongraph', [function(x){return Math.cos(x); | ||
+ | }]); | ||
+ | </jsxgraph> | ||
+ | <jsxgraph height='150' width='150' board='board' box='jxgbox'> | ||
+ | var b = JXG.JSXGraph.initBoard('jxgbox', {originX: 75, originY: 75, unitX: 30, unitY: 50}); | ||
+ | axisx = b.createElement('axis', [[0,0], [1,0]], {}); | ||
+ | axisy = b.createElement('axis', [[0,0], [0,1]], {}); | ||
+ | b.createElement('functiongraph', [function(x){return x; | ||
+ | }]); | ||
+ | </jsxgraph> |