Skip to content

Commit

Permalink
Fix factor of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottMacLachlan committed Oct 1, 2023
1 parent 2303feb commit 546af7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/mymath.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def sinc2d(x,y):
elif y==0:
return m.sin(x)/x
else:
return (m.cos(x-y) - m.cos(x+y))/(x*y)
return (m.cos(x-y) - m.cos(x+y))/(2*x*y)

def addone(x):
return x+1
Expand Down

0 comments on commit 546af7c

Please sign in to comment.