Circles on circles: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 62: | Line 62: | ||
<script language="JavaScript"> | <script language="JavaScript"> | ||
board = JXG.JSXGraph.initBoard('jsxgbox', {originX: 250, originY: 250, unitX: 100, unitY: 100}); | board = JXG.JSXGraph.initBoard('jsxgbox', {originX: 250, originY: 250, unitX: 100, unitY: 100}); | ||
alert($(" | alert($("c1").value); | ||
var c = board.createElement('curve', [ | var c = board.createElement('curve', [ | ||
function(t) { return Math.cos(t)+ 0.5*Math.cos( | function(t) { return Math.cos(t)+ 0.5*Math.cos(*t);}, | ||
function(t) { return Math.sin(t)+ 0.5*Math.sin(3*t);}, | function(t) { return Math.sin(t)+ 0.5*Math.sin(3*t);}, | ||
0,4*Math.PI]); | 0,4*Math.PI]); |
Revision as of 11:02, 29 June 2009