如何求gamma函数的逆函数?。
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
wedojo
el 16 de Nov. de 2022
Respondida: bacaxok
el 16 de Nov. de 2022
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 comentarios
Respuesta aceptada
bacaxok
el 16 de Nov. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!