lngamma, complex argument

7 views (last 30 days)
Silvina Pugliese
Silvina Pugliese on 14 Jan 2016
Answered: Torsten on 14 Jan 2016
I'm working with the trial version of Matlab and I can't use the function 'lngamma'. Any recommendations? Than you in advanced!

Answers (2)

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

Sign in to comment.


Torsten
Torsten on 14 Jan 2016
Use
and apply "log" to the result.
Best wishes
Torsten.

Tags

Community Treasure Hunt

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

Start Hunting!