开发者

How can I implicitly solve a single equation in Matlab?

开发者 https://www.devze.com 2023-01-13 09:39 出处:网络
The following equation is to be solved for M by MATLAB: (Atemp/At)^2=1/M^2*((2/(gamma+1))*(1+(gamma-1)*M^2/2))^((gamma+1)/(gamma-1))

The following equation is to be solved for M by MATLAB:

(Atemp/At)^2=1/M^2*((2/(gamma+1))*(1+(gamma-1)*M^2/2))^((gamma+1)/(gamma-1))

It is not possible to solve this equation symbolically. In Maple it is easily possible to solve such an equation implicitly; now, is there also a pre-made function in Matl开发者_开发问答ab that does this for me? I could program one myself, but as my skills are limited, its performance would not fit my needs.


I would try using fzero, or if that encounters problems because of complex values/infinities, fminbnd.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号