lngamma, complex argument

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 日

0 投票

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 日

0 投票

Use
and apply "log" to the result.
Best wishes
Torsten.

タグ

質問済み:

2016 年 1 月 14 日

回答済み:

2016 年 1 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by