Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
hirish99 committed Jun 18, 2024
1 parent b987dbe commit 10dbb92
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sumpy/recurrence.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
THE SOFTWARE.
"""

import math
import sympy as sp
from pytools.obj_array import make_obj_array
from sumpy.expansion.diff_op import make_identity_diff_op, laplacian
import math


#A similar function exists in sumpy.symbolic
def make_sympy_vec(name, n):
Expand Down Expand Up @@ -297,7 +298,7 @@ def coeff_laplace(i):
y, c_vec[1])/math.factorial(i)
d = 6
# pylint: disable=not-callable
val = r.subs(i, d).subs(s(d+1),coeff_laplace(d+1)).subs(
val = r.subs(i, d).subs(s(d+1), coeff_laplace(d+1)).subs(
s(d), coeff_laplace(d)).subs(s(d-1), coeff_laplace(d-1)).subs(
s(d-2), coeff_laplace(d-2)).simplify()
assert val == 0
Expand Down Expand Up @@ -327,11 +328,11 @@ def coeff_laplace_three_d(i):
return sp.diff(true_f, x, i).subs(x, c_vec[0]).subs(
y, c_vec[1]).subs(z, c_vec[2])/math.factorial(i)


d = 6
# pylint: disable=not-callable
val = r.subs(i, d).subs(s(d+1),coeff_laplace_three_d(d+1)).subs(
s(d), coeff_laplace_three_d(d)).subs(s(d-1), coeff_laplace_three_d(d-1)).subs(
val = r.subs(i, d).subs(s(d+1), coeff_laplace_three_d(d+1)).subs(
s(d), coeff_laplace_three_d(d)).subs(s(d-1),
coeff_laplace_three_d(d-1)).subs(
s(d-2), coeff_laplace_three_d(d-2)).simplify()

assert val == 0

0 comments on commit 10dbb92

Please sign in to comment.