Cosine: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 30: Line 30:
var x = brd1.create('glider',[-9,0,xr],{visible:true, name:'x'});
var x = brd1.create('glider',[-9,0,xr],{visible:true, name:'x'});
var y = brd1.create('point',[x.X(),Math.cos(x.X())],{size:1,name:'',strokeColor:'green'});
var y = brd1.create('point',[x.X(),Math.cos(x.X())],{size:1,name:'',strokeColor:'green'});
 
console.log("test1");
var x1 = brd1.create('segment',[x,y],{visible:true, straightFirst:false,straightLast:false,strokeColor:'red'});
var x1 = brd1.create('segment',[x,y],{visible:true, straightFirst:false,straightLast:false,strokeColor:'red'});
  x.on('drag', function(){ transform(x);});
  x.on('drag', function(){ transform(x);});
console.log("test1");
 
var f = brd1.create('functiongraph',[function(x){  
var f = brd1.create('functiongraph',[function(x){  
return Math.cos(x);  
return Math.cos(x);  

Revision as of 13:43, 5 March 2016

Complex PlaneCosine Graph