variable solve for T help
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
molar_composition=[30.4/100,43.1/100,21.5/100,3.1/100,1.9/100]
Feed_stream=100
A=[6.8760,6.8968,6.9187,7.1161,6.9509]
B=[1171.1700,1264.9000,1351.9900,1444.5900,1342.3100]
C=[224.4080,216.5440,209.1550,240.1840,219.1870]
P=5625.42
syms T
5625.42==(molar_composition(1))*10.^(A(1)-(B(1)/T+C(1)))
%+(molar_composition(2)/100)*10.^(A(2)-(B(2)/T+C(2)))+(molar_composition(3)/100)*10.^(A(3)-(B(3)/T+C(3)))+(molar_composition(4)/100)*10.^(A(4)-(B(4)/T+C(4)))+(molar_composition(5)/100)*10.^(A(5)-(B(5)/T+C(5)))
solve(T)
0 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2019 年 10 月 22 日
編集済み: KALYAN ACHARJYA
2019 年 10 月 22 日
molar_composition=[30.4/100,43.1/100,21.5/100,3.1/100,1.9/100];
Feed_stream=100;
A=[6.8760,6.8968,6.9187,7.1161,6.9509];
B=[1171.1700,1264.9000,1351.9900,1444.5900,1342.3100];
C=[224.4080,216.5440,209.1550,240.1840,219.1870];
P=5625.42;
syms T
fun=(molar_composition(1))*10.^(A(1)-(B(1)/T+C(1)))==5625.42;
%+(molar_composition(2)/100)*10.^(A(2)-(B(2)/T+C(2)))+(molar_composition(3)/100)*10.^(A(3)-(B(3)/T+C(3)))+(molar_composition(4)/100)*10.^(A(4)-(B(4)/T+C(4)))+(molar_composition(5)/100)*10.^(A(5)-(B(5)/T+C(5)))
solve(fun,T)
Result:
ans =
-1/((549755813888*log(20346100990538375/1099511627776))/(643857516551209*log(10)) + 14948685213335552/80482189568901125)
5 件のコメント
Parandeep Sandhu
2019 年 10 月 22 日
Steven Lord
2019 年 10 月 22 日
Use the double or vpa functions to approximate the exact answer by a number.
Parandeep Sandhu
2019 年 10 月 22 日
KALYAN ACHARJYA
2019 年 10 月 22 日
編集済み: KALYAN ACHARJYA
2019 年 10 月 22 日
clc;
clear;
syms x t
molar_composition=[30.4/100,43.1/100,21.5/100,3.1/100,1.9/100];
Feed_stream=100;
A=[6.8760,6.8968,6.9187,7.1161,6.9509];
B=[1171.1700,1264.9000,1351.9900,1444.5900,1342.3100];
C=[224.4080,216.5440,209.1550,240.1840,219.1870];
P=5625.42;
syms T
fun=(molar_composition(1))*10.^(A(1)-(B(1)/T+C(1)))==5625.42;
%+(molar_composition(2)/100)*10.^(A(2)-(B(2)/T+C(2)))+(molar_composition(3)/100)*10.^(A(3)-(B(3)/T+C(3)))+(molar_composition(4)/100)*10.^(A(4)-(B(4)/T+C(4)))+(molar_composition(5)/100)*10.^(A(5)-(B(5)/T+C(5)))
result=vpa(solve(fun,T));
fprintf('The solution is %.2f\n',result);
Parandeep Sandhu
2019 年 10 月 22 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!