## Description When the arguments are on wildly different scales, `lbeta` suffers from catastrophic cancellation. ## Example + Expected output https://www.wolframalpha.com/input/?i=LogGamma%2810%5E20%29+%2B+LogGamma%283%29+-+LogGamma%2810%5E20+%2B+3%29 ``` lbeta(1e20, 3) Stan: 0 Mathamatica: -137.46195839908279 ``` https://www.wolframalpha.com/input/?i=LogGamma%283*10%5E15%29+%2B+LogGamma%2812895%29+-+LogGamma%283*10%5E15+%2B+12895%29 ``` lbeta(3e15, 12895) Stan: -350384 Mathamatica: -350396.98895556212 ``` #### Current Version: v3.0.0