Skip to content

Commit

Permalink
fixed encoder3D and optimMaxRe3D
Browse files Browse the repository at this point in the history
  • Loading branch information
grammaton authored and sletz committed Nov 21, 2020
1 parent 1e7bf62 commit ab90e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hoa.lib
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
};


Expand Down

0 comments on commit ab90e6d

Please sign in to comment.