IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 8cf0c8ba authored by André Schmidt's avatar André Schmidt Committed by ralfulrich
Browse files

remove condon shortley

parent e441a86c
No related branches found
No related tags found
1 merge request!404adding Geomagnetic Models
......@@ -149,11 +149,9 @@ namespace corsika {
// Schmidt semi-normalization and Condon-Shortley phase term
if (p.m > 0) {
// Note: n! = tgamma(n+1)
legendre *= sqrt(2 * std::tgamma(p.n - p.m + 1) / std::tgamma(p.n + p.m + 1)) *
pow(-1, p.m);
legendre *= sqrt(2 * std::tgamma(p.n - p.m + 1) / std::tgamma(p.n + p.m + 1));
next_legendre *=
sqrt(2 * std::tgamma(p.n + 1 - p.m + 1) / std::tgamma(p.n + 1 + p.m + 1)) *
pow(-1, p.m);
sqrt(2 * std::tgamma(p.n + 1 - p.m + 1) / std::tgamma(p.n + 1 + p.m + 1));
}
derivate_legendre =
(p.n + 1) * tan(lat_sph) * legendre -
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment