Arc length: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 16: Line 16:
   this.dataY[0] = f(0.0);   
   this.dataY[0] = f(0.0);   
   for (i=1;i<m;i++) {
   for (i=1;i<m;i++) {
     this.dataX.append(0.0+i*d);   
     this.dataX.push(0.0+i*d);   
     this.dataY.append(f(0.0+(i-1)*d));   
     this.dataY.push(f(0.0+(i-1)*d));   
     this.dataX.append(0.0+i*d);   
     this.dataX.push(0.0+i*d);   
     this.dataY.append(f(0.0+i*d));   
     this.dataY.push(f(0.0+i*d));   
   }   
   }   
}
}

Revision as of 12:47, 7 June 2009

The underlying JavaScript code