Skip to content

Instantly share code, notes, and snippets.

@jberthet
Last active December 10, 2015 18:28
Show Gist options
  • Select an option

  • Save jberthet/4474630 to your computer and use it in GitHub Desktop.

Select an option

Save jberthet/4474630 to your computer and use it in GitHub Desktop.
E = [7,8,9]
def L(i, x):
for j in range(E):
if j != i:
res *= (x-j)/(i-j)
return res
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment