finverse for function handle
Show older comments
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 Comments
Jan
on 12 Jul 2022
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
on 12 Jul 2022
Accepted Answer
More Answers (1)
Abderrahim. B
on 12 Jul 2022
1 vote
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.
1 Comment
muhammod Abbasi
on 12 Jul 2022
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





