Simple function give complex number
显示 更早的评论
Hi,
I have theses two function:
f1=-(x5 - x7^(1/a))/(T + T0)^2;
f2=(x8*(T*x5 + T0*x7^(1/a)))/(T0*x7*(T + T0)^2) - (x5*x8)/(T0*x7*(T + T0));
x5,x7,x8 are variables and a,T0,T are parameters.
When I run the code for a range of real values of variables and parameters, I always get a complex number for both functions, I do not know why this is happening.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Variables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!