From ab90e6d06468b85adb02abd7b0fc668d7f49918b Mon Sep 17 00:00:00 2001 From: Giuseppe Silvi Date: Sat, 21 Nov 2020 16:24:43 +0100 Subject: [PATCH] fixed encoder3D and optimMaxRe3D --- hoa.lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hoa.lib b/hoa.lib index f96bbd7a..998faf8e 100644 --- a/hoa.lib +++ b/hoa.lib @@ -312,7 +312,7 @@ with { order(index) = int(index - int(degree(index) * int(degree(index) + 1))); // The spherical harmonics - y(l, m, theta, phi) = e(m, theta) * k(l, m) * p(l, m, cos(phi + PI * 0.5)) + y(l, m, theta, phi) = e(m, theta) * k(l, m) * p(l, m, cos(phi + ma.PI * 0.5)) with { // The associated Legendre polynomial // If l = 0 => p = 1 @@ -392,7 +392,7 @@ optimMaxRe3D(N) = par(i, (N+1) * (N+1), MaxRe(N, degree(i), _)) with { // The degree l of the harmonic[l, m] degree(index) = int(sqrt(index)); - MaxRe(N, l, _)= _ * cos(l / (2*N+2) * PI); + MaxRe(N, l, _)= _ * cos(l / (2*N+2) * ma.PI); };