Problem 46025. Evaluate the gamma function
Solution Stats
Problem Comments
-
3 Comments
Several formulas can approximate the gamma function on the complex domain, but all of them have issues. Please, look at its plot before starting. Nonetheless, there is a trick that makes them all work; and you must find it (I've lost some time trying different formulas, adding more terms, but it is not the way to go).
I've found a 1968-paper by Wrench, Concerning Two Series for the Gamma Function, which gives us the 20th first terms of one formula for instance. https://www.ams.org/journals/mcom/1968-22-103/S0025-5718-1968-0237078-4/ (It would be more than enough if there weren't issues with all approximations.)
lol that was fun xD
Solution Comments
Show commentsProblem Recent Solvers19
Suggested Problems
-
Project Euler: Problem 9, Pythagorean numbers
1300 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
613 Solvers
-
Split a string into chunks of specified length
1879 Solvers
-
299 Solvers
-
I've got the power! (Inspired by Project Euler problem 29)
127 Solvers
More from this Author291
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!