- #1
nanvinnie
- 2
- 0
hi.. I'm trying to write a MATLAB code that will iterate the mach value given a certain value for nu.
nu = sqrt((gamma +1)/(gamma -1))*atan(sqrt((gamma - 1)/(gamma +1)*(M^2-1)))-atan(sqrt(M^2-1))
this is the equation for the prandtl-meyer function, but how do i write it in MATLAB so that i can extract the value of nu for a given M value? sort of like the goal seak function in excel...
i would appreciate anyone's help!
nu = sqrt((gamma +1)/(gamma -1))*atan(sqrt((gamma - 1)/(gamma +1)*(M^2-1)))-atan(sqrt(M^2-1))
this is the equation for the prandtl-meyer function, but how do i write it in MATLAB so that i can extract the value of nu for a given M value? sort of like the goal seak function in excel...
i would appreciate anyone's help!