Skip to content

Commit 76fbb61

Browse files
committed
UP my solution
1 parent fb32487 commit 76fbb61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy_questions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def wallis_product(n_terms):
7272
# XXX : The n_terms is an int that corresponds to the number of
7373
# terms in the product. For example 10000.
7474
if n_terms == 0:
75-
return 2.0
75+
return 2.
7676
pi_2 = 1
7777
for n in range(1, n_terms+1):
7878
pi_2 *= (4*n**2)/(4*n**2-1)

0 commit comments

Comments
 (0)