Trochoid: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
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 17:01, 5 February 2009