Trochoid: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary  | 
				A WASSERMANN (talk | contribs) No edit summary  | 
				||
| 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 16:53, 5 February 2009