Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from numpy import matrix
- import numpy as np
- K = np.array([[1.0,0.0,0.0,0.0,0.0,0.0,0.0],
- [0.00, 8035555.56, -4017777.78, 0.00, 0.00, 0.00, 0.00],
- [0.00, -4017777.78, 6152222.22, -3013333.33, 0.00],
- [0.00, 0.00, -3013333.33, 6026666.67, 0.00, 0.00, 0.00],
- [0.00, 0.00, 0.00, 0.00, 1.00, 0.00, 0.00, 0.00, 0.00],
- [0.00, 0.00, 0.00, 0.00, 0.00, 4821333.33, -2410666.67],
- [0.00, 0.00, 0.00, 0.00, 0.00, -2410666.67, 2109333.33]])
- print("teraz K")
- print (K)
- #U przed uwzglednieniem warunkow brzegowych
- U = np.array([[1],
- [1],
- [1],
- [1],
- [1],
- [1],
- [1]])
- print("teraz U")
- print(U)
- print("teraz K+U")
- F = K + U
- print(F)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement