Using Python to Solve Physics Problems! (Tkinter Python App)

LeMaster Tech
LeMaster Tech
4.2 هزار بار بازدید - 2 سال پیش - Is that annoying teacher asking
Is that annoying teacher asking you to find the distance traveled by an airplane starting from rest after 32.8 seconds with a constant acceleration of 3.2 m/s^2??? Meanwhile you'd rather be programming sweet python stuff but you have to finish this annoying physics homework first???

No?

Well even if that very specific scenario isn't happening to you, this physics engine project is a great way to practice creating simple and easy applications to solve real world problems using python's simple tkinter graphical user interface module!

Github link with full project code available here:
https://github.com/plemaster01/Python...

Check out the full beginner tutorial introductions to tkinter here:
Build Applications with GUIs in Pytho...

Love the content on this channel? Feel free to support me on Patreon!
Patreon: LeMasterTech

Creating the buttons and labels takes just a few minutes to design a great and easy to use app, and then the program is just a matter of processing the user's entered data, and then outputting the correct result!

In kinematics (branch of physics dealing with constant acceleration scenarios) you can solve for any two unknown variables (acceleration, displacement, time, initial velocity, final velocity) if you know the other three using just four simple core functions! However, teaching python how to properly rework all the formulas so they know what to solve for and how to use the tools is a great programming exercise!

Hopefully you found this video fun and educational and let me know in the comments if you have any questions about what you saw here or what you want to see more of in the future!

Timestamps:
00:00 - Intro and Project Explanation
03:16 - Importing Modules and Setting Up Tkinter
05:15 - Drawing Labels, Entries and Buttons!
21:00 - Make Tkinter widgets dynamically resizable
23:25 - Getting entered values from Entries!
27:35 - Solve for Acceleration!
48:45 - Clear Out Values from Tkinter Entry Boxes
50:01 - Solve for Final Velocity!
56:10 - Solve for Initial Velocity!
1:01:18 - Solve for Time!
1:14:10 - Solve for Displacement!
1:19:50 - Testing the App With Sample Problems!
2 سال پیش در تاریخ 1401/04/03 منتشر شده است.
4,239 بـار بازدید شده
... بیشتر