Questions and discussion for this lecture live here. Fire away by hitting Reply below ![]()
Greetings,
m1_cols = h1gamma_UC254 + h2gamma_UC203 #(kg) Mass of half of columns above and below level 1
Why we considered only weight of one column? shouldn’t be 2 x (h1gamma_UC254 + h2gamma_UC203)
Hi, we’re considering half of the height above and below for 2 columns, which is the same as the full height above and below for 1 column - which is what we’ve written in the code - the mass is the same.
S
Hiya! You could move the calculations for the x, y, and z matrices outside the for loop to avoid recomputing them at every iteration. Also, note that np.matrix has been deprecated in modern NumPy, so it’s better to use np.array instead.
Thanks for posting @Kamil
S