Skip to content

Instantly share code, notes, and snippets.

@abdalimran
Created November 13, 2017 13:39
Show Gist options
  • Save abdalimran/d6c4106c0ff1da5d86573998464d7558 to your computer and use it in GitHub Desktop.
Save abdalimran/d6c4106c0ff1da5d86573998464d7558 to your computer and use it in GitHub Desktop.
import numpy as np
def func(x):
return x**2+5
x = np.array([-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6])
y = func(x)
print(x)
print(y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment