// To the best of my knowledge this code is correct. // If you find any errors or problems please contact // me using zunzun@zunzun.com or the feedback form. // James #include // Fitting target is lowest sum of squared (SSQ) absolute error (traditional) double TanC_Radians_WO_model(double x_in) { double temp; temp = 0.0; // coefficients double a = 7.3383525433550612E-01; double b = 8.6390150034495235E-03; double c = -4.0051310883951308E+00; double d = 8.8798823255401194E-01; temp = a * tan(b * x_in + c) + d; return temp; }