English

## linear regression

 70 Keelan 2015.12.30 22:30 #   i had a function for counting digits and multiplying out didnt work either, i was guessing its the proportionality of the x given they're positive integers, doing the standard deviation on the Y axis normalizes to some extent, well in some cases almost exactly it depends on the length used for the x, the larger the x the less accurate the inverse arctan of the co-efficient. Ive got rads to degree's and degree's to rads also, from my looking your switching rads to degree's but the arctan is still tiny.arctan finds the length given the angle but you somehow have to quantify the axis to fully normalize it, given there's no absolute scale its either a ratio or an exponential but neither worked for me.I'll try arctan(0.00005)*180/pi, arctan takes rads and gives rads and your multiplying by rads again.  Let me check.  Your using degreestorads where i use radstodegress. ```double radstodegrees(double val){         //This function converts radians to degrees             //6.2 / 360 gives 0.0172 which is the unit ratio to degree's         double units = 0;         double rads = 3.14169266;         double degrees = 180;         double deguse = 0;                  deguse = (val / rads) * 180;                      return deguse; } double degreestorads(double val){         //This one turns degrees into radians         double units = 0;         double rads = 3.14169266;         double degrees = 180;         double deguse = 0;                                          units = (rads / degrees);         deguse = units * val;                             return deguse;          }```