Circles on circles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 61: Line 61:
<div id="jsxgbox" class="jxgbox" style="width:500px; height:500px;"></div>
<div id="jsxgbox" class="jxgbox" style="width:500px; height:500px;"></div>
<script language="JavaScript">
<script language="JavaScript">
  board = JXG.JSXGraph.initBoard('jsxgbox', {originX: 250, originY: 250, unitX: 50, unitY: 50});
  board = JXG.JSXGraph.initBoard('jsxgbox', {originX: 250, originY: 250, unitX: 100, unitY: 100});
var c = board.createElement('curve', [
              function(t) { return Math.cos(t)+ $("#sliderc1").value*Math.cos($("#sliderf1").value*t);},
              function(t) { return Math.sin(t)+ $("#sliderc1").value*Math.cos($("#sliderf1").value*t);},
              0,4*Math.PI]);
 
 
</script>
</script>
</html>
</html>

Revision as of 10:58, 29 June 2009