Difference between revisions of "Continuous functions"

From JSXGraph Wiki
Jump to navigationJump to search
Line 22: Line 22:
 
       x2 = board.createElement('point', [function(){return x1.X()-s.X();},0],{style:7,name:' '});
 
       x2 = board.createElement('point', [function(){return x1.X()-s.X();},0],{style:7,name:' '});
 
       x3 = board.createElement('point', [function(){return x1.X()+s.X();},0],{style:7,name:' '});
 
       x3 = board.createElement('point', [function(){return x1.X()+s.X();},0],{style:7,name:' '});
       v2 = board.createElement('line', [function(t){return x2.X();},function(t){return t}], {strokeColor:'red',dash:1});
+
       v2 = board.createElement('curve', [function(t){return x2.X();},function(t){return t}], {strokeColor:'red',dash:1});
       v3 = board.createElement('line', [function(t){return x3.X();},function(t){return t}], {strokeColor:'red',dash:1});
+
       v3 = board.createElement('curve', [function(t){return x3.X();},function(t){return t}], {strokeColor:'red',dash:1});
  
 
</script>
 
</script>

Revision as of 11:54, 17 December 2008

References

The underlying JavaScript source code