lngamma, complex argument

1 次查看(过去 30 天)
Silvina Pugliese
Silvina Pugliese 2016-1-14
回答: Torsten 2016-1-14
I'm working with the trial version of Matlab and I can't use the function 'lngamma'. Any recommendations? Than you in advanced!

回答(2 个)

Alan Weiss
Alan Weiss 2016-1-14
You probably should try to use the function gammaln instead.
Alan Weiss
MATLAB mathematical toolbox documentation
  2 个评论
Torsten
Torsten 2016-1-14
Is it applicable to complex arguments, too ?
Best wishes
Torsten.
Silvina Pugliese
Silvina Pugliese 2016-1-14
编辑:Silvina Pugliese 2016-1-14
Thank you for the answer. The problem is that gammaln is valid only for real arguments. Isn't it?

请先登录,再进行评论。


Torsten
Torsten 2016-1-14
Use
and apply "log" to the result.
Best wishes
Torsten.

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by