# Difference between revisions of "Trochoid"

From JSXGraph Wiki

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

Line 10: | Line 10: | ||

var x = function(phi) { return a.Value()*phi-b.Value()*Math.sin(phi); } | var x = function(phi) { return a.Value()*phi-b.Value()*Math.sin(phi); } | ||

var y = function(phi) { return a.Value()-b.Value()*Math.cos(phi); } | var y = function(phi) { return a.Value()-b.Value()*Math.cos(phi); } | ||

− | c1 = board.createElement('curve', [x,y,'phi',0,Math.PI*4],{strokeWidth:3 | + | c1 = board.createElement('curve', [x,y,'phi',0,Math.PI*4],{strokeWidth:3}); |

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

</html> | </html> |

## Revision as of 17:53, 5 February 2009