https://github.com/Ornstein89/atmosGOST_R_25645_166_2004/blob/c813bc25c5f93b59e1503336e19cededda4d4462/atmosGOST_R_25645_166_2004/atmosGOST_R_25645_166_2004.cpp#L515 потеряны скобки: cos(phi/2) = sqrt((1 + cos(phi)) / 2). должно быть double cos_half_phi = std::sqrt((1+cos_phi) / 2);
atmosGOST_R_25645_166_2004/atmosGOST_R_25645_166_2004/atmosGOST_R_25645_166_2004.cpp
Line 515 in c813bc2
потеряны скобки: cos(phi/2) = sqrt((1 + cos(phi)) / 2).
должно быть
double cos_half_phi = std::sqrt((1+cos_phi) / 2);