如何求gamma函数的逆函数?。
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
finverse可以求一个函数的逆函数,我自己编的程序如下:
syms x
y = gamma(x);
yinv = finverse(y);
subs(yinv,x,6) %求y=6时对应的x,理论值应为4
matlab发出警告:
Warning: finverse(gamma(x)) cannot be found.
不知道大家有没有其它方法求gamma函数的逆函数,谢谢!
0 commentaires
Réponse acceptée
bacaxok
le 16 Nov 2022
伽马函数不是一一对应的。
同一个值可能有好些答案
gamma(4)=6;gamma(-3.0269)约为6.......
看图 约有5个值
fun=@(x,y)gamma(x)-y;
fzero(@(x)fun(x,6),-3.4),%变换-3.4的初值得到不同的结果。
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!