我是靠谱客的博主 务实小天鹅,最近开发中收集的这篇文章主要介绍matlab invalid input,How to solve 'Error using symengine. Invalid input. 'expression' is expected.'?,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

syms Ta Tc alpha gammar Tz xiz QH deltaQH M1 betaz

mcv=19.806+(0.00419/2).*Ta

mcphayphayvz=19.806+(0.00419/2).*Tz+0.5.*Tz.*((360.34+252.4*alpha)^(10^-5))

mcphayvc=(mcv+gammar.*mcphayphayvz)./(1+gammar)

eqn = Tz==(((xiz*(QH-deltaQH))./(M1.*(1+gammar)))+mcphayvc.*Tc)./(betaz.*mcphayphayvz);

Tzsol = solve(eqn, Tz)

Note that Ta Tc gammar must be scalar values for this purpose. If they were arrays then the solve() would be trying to find one single Tz that solved all of the values simultaneously.

If you are trying to get a solution for each corresponding Ta, Tc, gammar, then you cansubs(Tzsol, {Ta, Tc, gammar}, {Ta_array, Tc_array, gammar_array})

Also note that a pair of solutions are found. It looks like it might be two solutions for a quadratic.

最后

以上就是务实小天鹅为你收集整理的matlab invalid input,How to solve 'Error using symengine. Invalid input. 'expression' is expected.'?的全部内容,希望文章能够帮你解决matlab invalid input,How to solve 'Error using symengine. Invalid input. 'expression' is expected.'?所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(44)

评论列表共有 0 条评论

立即
投稿
返回
顶部