How to equate two equations and find one of the unknown from it as a function of second unknown?
5 次查看(过去 30 天)
显示 更早的评论
I have two equations,
R1 = 1.5;
ntone = R1 + etplusone + et; %%Equation(1)
nttwo = log(R1) + 2*etplusone + et^2; %%Equation(2)
%%% Please note, et and etplusone are the unknowns here
I wanted to equate these two equations and obtain etplusone as a function of et
Kindly help or advice on this, please.
0 个评论
采纳的回答
Paul
2021-12-13
syms et etplusone
R1 = 1.5;
ntone = R1 + etplusone + et; %%Equation(1)
nttwo = log(R1) + 2*etplusone + et^2; %%Equation(2)
soletplusone = solve(ntone == nttwo,etplusone,'ReturnConditions',true)
Seems like this would be straightforward to do by hand, wouldn't it?
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!