finverse for function handle
이전 댓글 표시
hello everyone.
how can I find inverse of X_Bi ?
matlab says that unable to find functional inverse.
can you help me please?
clc
clear
close all
R = 8.314;
syms f(x) ;
syms g(x) ;
T_m_Bi = 544;
T_m_Cd = 594;
delta_H0_Bi = 10900;
delta_H0_Cd = 6400;
delta_S0_Bi = 20 ;
delta_S0_Cd = 10.77;
f(x) = 1.2 - (16.45 * x * 10^-3) + (21.1 * x^-2 * 10^5);
g(x) = 7.5 - 12.3 .* 10 .^ (-3) .* x;
G1 = g(x) / x;
F1(x) = f(x) / x;
F = int(f,T_m_Bi,x,'IgnoreAnalyticConstraints',true);
G = int(g,T_m_Cd,x,'IgnoreAnalyticConstraints',true);
F1_prime = int(F1,x,T_m_Bi,x,'IgnoreAnalyticConstraints',true);
G1_prime = int(G1,T_m_Cd,x,'IgnoreAnalyticConstraints',true);
delta_G_Bi(x) = delta_H0_Bi + F - x * (delta_S0_Bi + F1_prime);
delta_G_Cd(x) = delta_H0_Cd + G - x * (delta_S0_Cd + G1_prime);
X_Bi(x) = exp(-delta_G_Bi/(R * x))
y = finverse(X_Bi)
댓글 수: 2
Jan
2022년 7월 12일
By the way, 12.3 .* 10 .^ (-3) is ugly and an expensive power operation, whilw 12.3e-3 is a cheap constant.
Why do you assume, that there is an inverse function?
muhammod Abbasi
2022년 7월 12일
채택된 답변
추가 답변 (1개)
Abderrahim. B
2022년 7월 12일
1 개 추천
Not every function has an inverse.
That's a warning not an error and I believe it is because your function does not have an inverse function.
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






