r/AerospaceEngineering • • Feb 15 '23

Uni / College Python code

Post image

So my assignment problem is coding a program to find the mach number and total enthalpy using python/matlab. I prefer python coz of the vast possiblities in AI and Automation. Can someone please help me with this🫡

0 Upvotes

22 comments sorted by

View all comments

5

u/NukeRocketScientist Feb 15 '23

This is super easy, you don't even need MATLAB or Python. You can either solve for M1 using a numerical solver or just guess and check with a few iterations.

-4

u/[deleted] Feb 15 '23

According to the professor i have to write a code.😭🫡

5

u/NukeRocketScientist Feb 15 '23

Okayyyyy, so just set up the equation to solve for M1 in MATLAB or Python. If you don't have the programming knowledge to at the minimum set up a single equation variable solver you're going to have a very hard time. This should honestly take you less than 10 minutes in MATLAB.