Skip to content

Commit

Permalink
Merge pull request #36 from pypr/simplify-example
Browse files Browse the repository at this point in the history
Remove unused code.
  • Loading branch information
prabhuramachandran committed Jul 3, 2024
2 parents e97a4fd + 133aa2d commit 3dd0b31
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/tutorial/powers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
def compute_powers(r_max, power):
"""Compute the powers of the integers upto r_max and return the result.
"""
result = []
for i in range(0, r_max + 1):
result.append((i, i**power))
x = np.arange(0, r_max + 1)
y = np.power(x, power)
return x, y
Expand Down

0 comments on commit 3dd0b31

Please sign in to comment.