We have a cable pulley system that remains in equilibrium due to a force P which keeps the collar stationary. We want to determine all the P forces required for all values of x from 0 meters to 4 meters and then be able to graph the values of P vs. x using MatPlotLib library in Python!
In this part, we'll jump into our IDE and use Python to implement the algorithm we came up with in the previous video.
⏰ Timestamps:
0:00 Introduction
1:06 A Review of the Algorithm
2:07 Defining Our Input in Python
2:58 Initializing Our Empty Lists for P and x
4:11 Explaining the While Loop
6:44 Implementing the While Loop
7:37 Calculating P
9:07 Updating Our Lists with P and x
10:00 Incrementing Our x-value
10:20 Printing Our P and x Values
11:43 Using MatPlotLib to Plot P vs. x
14:21 Understanding the Graph
15:06 Adding Markers & Labels to our Graph
🎥 This lecture is part of the Statics With Python course: • Statics With Python
💙 If you've found my content helpful and would like to support the channel, you can do so here: https://www.buymeacoffee.com/simmysigma
📘 Find my Digital Engineering Paper Templates here: https://www.etsy.com/shop/29moonnoteb...
🐥 Follow me on Twitter here: @simmysigma
📸 Follow me on Instagram here: @simmysigma
--