All pastes #806171 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-12-05 00:22 UTC
rendered paste body
// 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 <math.h>

// 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;
}