Circles on circles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 63: Line 63:
  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});
  var c = board.createElement('curve', [
  var c = board.createElement('curve', [
               function(t) { return Math.cos(t)+ $("#sliderc1").value*Math.cos($("#sliderf1").value*t);},
               function(t) { return Math.cos(t)+ 0.5*Math.cos(3*t);},
               function(t) { return Math.sin(t)+ $("#sliderc1").value*Math.cos($("#sliderf1").value*t);},
               function(t) { return Math.sin(t)+ 0.5*Math.sin(3*t);},
               0,4*Math.PI]);
               0,4*Math.PI]);


//              function(t) { return Math.cos(t)+ $("#sliderc1").value*Math.cos($("#sliderf1").value*t);},
//              function(t) { return Math.sin(t)+ $("#sliderc1").value*Math.sin($("#sliderf1").value*t);},


</script>
</script>
</html>
</html>

Revision as of 10:59, 29 June 2009