Difference between revisions of "Circles on circles"

From JSXGraph Wiki
Jump to navigationJump to search
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 12:58, 29 June 2009