Correct beta function for negative arguments. Correct documentation for lgamma and lbeta. And some tests.
Merge pull request #3290 from JuliaLang/anj/fixmath

Correct beta function for negative arguments.