Trochoid: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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* | 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