numpy-tutorials icon indicating copy to clipboard operation
numpy-tutorials copied to clipboard

Static Equilibrium Tutorial Enhancement

Open AlexGriffiths526 opened this issue 2 years ago • 2 comments

Hi, I have been following the Static Equilibrium tutorial and found it very useful so thank you to @h2o-DS for putting this together. I was wondering if the last example could be extended to show how the matrices could be solved using Numpy.

AlexGriffiths526 avatar Dec 20 '23 14:12 AlexGriffiths526

Hello, @AlexGriffiths526. I am glad to hear you found the tutorial helpful. This linear system of equations can be solved with numpy.linalg.solve(A, B) where matrix A contains the coefficients for each variable and B is the constants for each equation. For five equations and five variables A would be 5x5 and B would be 5x1. You are correct in that would be useful for the problem. I will look into updating the tutorial.

h2o-DS avatar Dec 20 '23 16:12 h2o-DS

I was wondering if the last example could be extended to show how the matrices could be solved using Numpy.

By all means, proposals to improve/extend the tutorials are welcome!

rossbar avatar Dec 20 '23 18:12 rossbar