Least-squares line fitting: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="600" height="600">
<jsxgraph width="600" height="600">
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], keepaspectratio:true});
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], keepaspectratio:true});
var i, p = [], angle, xr, yr, delta = 0.8;
var i, p = [], angle, xr, yr, delta = 1.5;


// Random points are constructed which lie roughly on a line
// Random points are constructed which lie roughly on a line

Revision as of 19:35, 5 November 2010