- k shall be a symbol, once you do this before it is used, then this will take care of the dependency of delta and theta.
Solve equation including parameters dependent on main variable
조회 수: 8(최근 30일)
% Phase angle
% Dead-volume ratio
% Heat lifted
% Reduced dead volume
% Heat lifted and Work done
A=sqrt(tau.^2 + k^2 + 2*tau*k*cos(alpha));
B=tau + k + 2*S;
theta=(atan((k*sin(alpha))./(tau + k*cos(alpha))));
For range of values of tau, I want to have 'k'. But the problem is there are variables in Q_max equation such as delta and theta which are dependant on k by themselves. What should I do?
Yongjian Feng 2022년 1월 21일
편집: Yongjian Feng 2022년 1월 21일
2. solve takes function and symbol(s), not char array
3. There are some issues of your script, for example, T_E starts with 0, so tau = T_C/T_E is infinity. You might need to clean those up.