回答編集履歴

1

2023/01/08 01:15

投稿

melian
melian

スコア20156

test CHANGED
@@ -5,11 +5,9 @@
5
5
  def fz(x,y):
6
6
  z = np.zeros(x.shape)
7
7
  for e in range(41):
8
- if e % 2 == 0:
8
+ if e % 2:
9
- a = clf_i[e]*jv(e,x)*np.cos(e*y)
9
+ z += clf_i[e]*jv(e,x)*np.sin(e*y)
10
- z += a
11
10
  else:
12
- b = clf_i[e]*jv(e,x)*np.sin(e*y)
11
+ z += clf_i[e]*jv(e,x)*np.cos(e*y)
13
- z += b
14
12
  return z
15
13
  ```