Skip to content

Instantly share code, notes, and snippets.

@YannBerthelot
Created September 26, 2021 16:32
Show Gist options
  • Save YannBerthelot/2296e109f012a0278935ac36a5fcb58c to your computer and use it in GitHub Desktop.
Save YannBerthelot/2296e109f012a0278935ac36a5fcb58c to your computer and use it in GitHub Desktop.
def compute_mach(V):
norm_v = np.linalg.norm([[V[0], V[1]])
return norm_v / 343.0, norm_v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment