Difference between revisions of "Trochoid"

From JSXGraph Wiki
Jump to navigationJump to search
Line 10: Line 10:
 
  var x = function(phi) { return a.Value()*phi-b.Value()*Math.sin(phi); }
 
  var x = function(phi) { return a.Value()*phi-b.Value()*Math.sin(phi); }
 
  var y = function(phi) { return a.Value()-b.Value()*Math.cos(phi); }
 
  var y = function(phi) { return a.Value()-b.Value()*Math.cos(phi); }
  c1 = board.createElement('curve', [x,y,'phi',0,Math.PI*4],{strokeWidth:3;});
+
  c1 = board.createElement('curve', [x,y,'phi',0,Math.PI*4],{strokeWidth:3});
 
</script>  
 
</script>  
 
</html>
 
</html>

Revision as of 18:53, 5 February 2009