# Difference between revisions of "Trochoid"

From JSXGraph Wiki

A WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

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}); | + | var c2 = board.createElement('curve', [X,Y,'phi',-Math.PI*4,Math.PI*4],{strokeWidth:3, strokeColor:'red'}); |

</script> | </script> | ||

</html> | </html> |

## Revision as of 18:00, 5 February 2009