Best way to solve for a implicit equation?

110 views (last 30 days)
Ironlothar
Ironlothar on 8 Oct 2015
Answered: Star Strider on 8 Oct 2015
I'm trying to solve the following equation for M:
g = 1.27; ar = 44.11; (1/M)*((2/(g+1))*(1+(((g-1)/2)*M^2))^((g+1)/(2*(g-1)))) == ar
What is the best method? Thank you for the help!

Answers (1)

Star Strider
Star Strider on 8 Oct 2015
The fzero function seems to be appropriate here:
g = 1.27; ar = 44.11;
fcn = @(M) (1./M)*((2/(g+1)).*(1+(((g-1)/2)*M.^2)).^((g+1)/(2*(g-1)))) - ar;
M = fzero(fcn, 1)
M =
4.3952

Categories

Find more on Optimization in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!