Trochoid: Difference between revisions

From JSXGraph Wiki
(New page: <html> <link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" /> <script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jqu...)
 
No edit summary
Line 8: Line 8:
  var a = board.createElement('slider', [[1,-1],[4,-1],[-5,1,5]], {style:6});
  var a = board.createElement('slider', [[1,-1],[4,-1],[-5,1,5]], {style:6});
  var b = board.createElement('slider', [[1,-2],[4,-2],[-5,1,5]], {style:6});
  var b = board.createElement('slider', [[1,-2],[4,-2],[-5,1,5]], {style:6});
  var x = functioon(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 = functioon(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