@@ -197,19 +197,18 @@ def zeta_from(self, grid: aa.type.Grid2DLike, xp=np):
197197
198198 ind_pos_y = y >= 0
199199
200- scale = q / (xp .asarray (self .sigma , dtype = xp .float64 )
201- * xp .sqrt (xp .asarray (2.0 , dtype = xp .float64 ) * (1.0 - q2 )))
200+ scale = q / (
201+ xp .asarray (self .sigma , dtype = xp .float64 )
202+ * xp .sqrt (xp .asarray (2.0 , dtype = xp .float64 ) * (1.0 - q2 ))
203+ )
202204
203205 xs = x * scale
204206 ys = xp .abs (y ) * scale
205207
206208 z1 = xs + 1j * ys
207209 z2 = q * xs + 1j * ys / q
208210
209- exp_term = xp .exp (
210- - (xs * xs ) * (1.0 - q2 )
211- - (ys * ys ) * (1.0 / q2 - 1.0 )
212- )
211+ exp_term = xp .exp (- (xs * xs ) * (1.0 - q2 ) - (ys * ys ) * (1.0 / q2 - 1.0 ))
213212
214213 core = - 1j * (self .wofz (z1 , xp = xp ) - exp_term * self .wofz (z2 , xp = xp ))
215214
@@ -243,10 +242,13 @@ def wofz(self, z, xp=np):
243242 w_large = 1j * inv_sqrt_pi / t
244243
245244 # ---------- Region 5 ----------
246- U5 = xp .asarray ([1.320522 , 35.7668 , 219.031 ,
247- 1540.787 , 3321.990 , 36183.31 ], dtype = xp .float64 )
248- V5 = xp .asarray ([1.841439 , 61.57037 , 364.2191 ,
249- 2186.181 , 9022.228 , 24322.84 , 32066.6 ], dtype = xp .float64 )
245+ U5 = xp .asarray (
246+ [1.320522 , 35.7668 , 219.031 , 1540.787 , 3321.990 , 36183.31 ], dtype = xp .float64
247+ )
248+ V5 = xp .asarray (
249+ [1.841439 , 61.57037 , 364.2191 , 2186.181 , 9022.228 , 24322.84 , 32066.6 ],
250+ dtype = xp .float64 ,
251+ )
250252
251253 t = inv_sqrt_pi
252254 for u in U5 :
@@ -259,10 +261,22 @@ def wofz(self, z, xp=np):
259261 w5 = xp .exp (- z2 ) + 1j * z * t / s
260262
261263 # ---------- Region 6 ----------
262- U6 = xp .asarray ([5.9126262 , 30.180142 , 93.15558 ,
263- 181.92853 , 214.38239 , 122.60793 ], dtype = xp .float64 )
264- V6 = xp .asarray ([10.479857 , 53.992907 , 170.35400 ,
265- 348.70392 , 457.33448 , 352.73063 , 122.60793 ], dtype = xp .float64 )
264+ U6 = xp .asarray (
265+ [5.9126262 , 30.180142 , 93.15558 , 181.92853 , 214.38239 , 122.60793 ],
266+ dtype = xp .float64 ,
267+ )
268+ V6 = xp .asarray (
269+ [
270+ 10.479857 ,
271+ 53.992907 ,
272+ 170.35400 ,
273+ 348.70392 ,
274+ 457.33448 ,
275+ 352.73063 ,
276+ 122.60793 ,
277+ ],
278+ dtype = xp .float64 ,
279+ )
266280
267281 t = inv_sqrt_pi
268282 for u in U6 :
0 commit comments