# Difference between revisions of "Trochoid"

From JSXGraph Wiki

Jump to navigationJump to searchA 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* | + | 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 19:01, 5 February 2009