Difference between revisions of "Trochoid"

From JSXGraph Wiki
Jump to: navigation, search
Line 16: Line 16:
 
  var X = function(phi) { return board.D(y)(phi)/(y(phi)*board.D(x)(phi)-x(phi)*board.D(y)(phi)); }
 
  var X = function(phi) { return board.D(y)(phi)/(y(phi)*board.D(x)(phi)-x(phi)*board.D(y)(phi)); }
 
  var Y = function(phi) { return board.D(x)(phi)/(x(phi)*board.D(y)(phi)-y(phi)*board.D(x)(phi)); }
 
  var Y = function(phi) { return board.D(x)(phi)/(x(phi)*board.D(y)(phi)-y(phi)*board.D(x)(phi)); }
  var c2 = board.createElement('curve', [X,Y,'phi',-Math.PI*4,Math.PI*4],{strokeWidth:3, strokeColor:'red'});
+
  var c2 = board.createElement('curve', [X,Y,'phi',-Math.PI*1,Math.PI*1],{strokeWidth:3, strokeColor:'red'});
 
</script>  
 
</script>  
 
</html>
 
</html>

Revision as of 18:01, 5 February 2009