Created
June 8, 2017 01:28
-
-
Save MSeifert04/cf526882ddb94bf0cb9f428a9a738814 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = [[1],[1],[1],[-1]] | |
a = [[-2,-1,-1,-2],[1,-2,2,-1],[-1,-2,-2,-1],[2,-1,1,-2]] | |
h = 0.1 | |
def K(h,a,x): | |
cont = [1,2,3,4] | |
k = [h * item for item in cont] | |
y = [[item_x[0] + item_k/4] for item_x, item_k in zip(x, k)] | |
return y | |
K(h,a,x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment