Skip to content

Commit cd5509f

Browse files
committed
2 parents 7bc0e6d + a46043e commit cd5509f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sfs/mono/drivingfunction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def wfs_25d_plane(omega, x0, n0, n=[0, 1, 0], xref=[0, 0, 0], c=None,
110110
xref = util.asarray_1d(xref)
111111
k = util.wavenumber(omega, c)
112112
return wfs_25d_preeq(omega, omalias, c) * \
113-
np.sqrt(2*np.pi * np.linalg.norm(xref - x0)) * \
113+
np.sqrt(8*np.pi * np.linalg.norm(xref - x0, axis=-1)) * \
114114
np.inner(n, n0) * np.exp(-1j * k * np.inner(n, x0))
115115

116116

@@ -312,8 +312,8 @@ def nfchoa_25d_plane(omega, x0, r0, n=[0, 1, 0], max_order=None, c=None):
312312
d = 0
313313
hn2 = util.spherical_hn2(range(0, M + 1), k * r0)
314314
for m in range(-M, M + 1):
315-
d += 1j**-abs(m) / (k * hn2[abs(m)]) * np.exp(1j * m * (phi0 - phi))
316-
return -2 / r0 * d
315+
d += (-1j)**abs(m) / (k * hn2[abs(m)]) * np.exp(1j * m * (phi0 - phi))
316+
return 2*1j / r0 * d
317317

318318

319319
def sdm_2d_line(omega, x0, n0, xs, c=None):

0 commit comments

Comments
 (0)