Difference between revisions of "Polynomial regression II"

From JSXGraph Wiki
Jump to navigationJump to search
Line 10: Line 10:
 
regression = JXG.Math.Numerics.regressionPolynomial(deg,pointlist);  
 
regression = JXG.Math.Numerics.regressionPolynomial(deg,pointlist);  
 
reg = brd.createElement('functiongraph',[regression],{strokeColor:'green'});     
 
reg = brd.createElement('functiongraph',[regression],{strokeColor:'green'});     
 +
t = brd.createElement('text',[20,40,
 +
            function(){ return "r(x) = " + regression.getTerm();}
 +
            ],
 +
            {strokeColor:'black',fontSize:'14px'});   
 +
 
brd.unsuspendUpdate();
 
brd.unsuspendUpdate();
 
 
 
</jsxgraph>
 
</jsxgraph>

Revision as of 16:16, 19 August 2009