double n1 = theorientation[series_number][1]*theorientation[series_number][5]-
theorientation[series_number][2]*theorientation[series_number][4];
double n2 = theorientation[series_number][3]*theorientation[series_number][2]-
double n1 = theorientation[series_number][1]*theorientation[series_number][5]-
theorientation[series_number][2]*theorientation[series_number][4];
double n2 = theorientation[series_number][3]*theorientation[series_number][2]-