BUG: special: prevent overflow in `lambertw`
BUG: special: prevent overflow in `lambertw`

The Halley iteration requires computing the exponential of the initial
guess, which can easily overflow if done naively. This manipulates the
formula to always keep the exponential factors small. It also improves
the initial guess by using two terms of the asymptotic series

matthew-brett/scipy,grlee77/scipy,e-q/scipy,aarchiba/scipy,tylerjereddy/scipy,aeklant/scipy,vigna/scipy,gertingold/scipy,zerothi/scipy,anntzer/scipy,andyfaff/scipy,perimosocordiae/scipy,rgommers/scipy,andyfaff/scipy,gertingold/scipy,nmayorov/scipy,e-q/scipy,pizzathief/scipy,gfyoung/scipy,endolith/scipy,tylerjereddy/scipy,lhilt/scipy,anntzer/scipy,matthew-brett/scipy,scipy/scipy,gertingold/scipy,nmayorov/scipy,matthew-brett/scipy,grlee77/scipy,WarrenWeckesser/scipy,zerothi/scipy,Eric89GXL/scipy,person142/scipy,lhilt/scipy,andyfaff/scipy,lhilt/scipy,jor-/scipy,person142/scipy,anntzer/scipy,perimosocordiae/scipy,mdhaber/scipy,arokem/scipy,gfyoung/scipy,endolith/scipy,arokem/scipy,andyfaff/scipy,grlee77/scipy,Stefan-Endres/scipy,Stefan-Endres/scipy,aeklant/scipy,anntzer/scipy,e-q/scipy,Stefan-Endres/scipy,ilayn/scipy,jor-/scipy,lhilt/scipy,ilayn/scipy,grlee77/scipy,zerothi/scipy,gfyoung/scipy,tylerjereddy/scipy,perimosocordiae/scipy,rgommers/scipy,jor-/scipy,e-q/scipy,pizzathief/scipy,Eric89GXL/scipy,gertingold/scipy,scipy/scipy,scipy/scipy,tylerjereddy/scipy,matthew-brett/scipy,ilayn/scipy,scipy/scipy,andyfaff/scipy,ilayn/scipy,mdhaber/scipy,person142/scipy,gfyoung/scipy,nmayorov/scipy,aeklant/scipy,nmayorov/scipy,aarchiba/scipy,mdhaber/scipy,jamestwebber/scipy,pizzathief/scipy,vigna/scipy,e-q/scipy,nmayorov/scipy,Stefan-Endres/scipy,Stefan-Endres/scipy,scipy/scipy,WarrenWeckesser/scipy,grlee77/scipy,gertingold/scipy,endolith/scipy,andyfaff/scipy,arokem/scipy,mdhaber/scipy,jamestwebber/scipy,Eric89GXL/scipy,anntzer/scipy,WarrenWeckesser/scipy,matthew-brett/scipy,aarchiba/scipy,aeklant/scipy,scipy/scipy,zerothi/scipy,arokem/scipy,gfyoung/scipy,pizzathief/scipy,endolith/scipy,mdhaber/scipy,Stefan-Endres/scipy,ilayn/scipy,WarrenWeckesser/scipy,person142/scipy,Eric89GXL/scipy,vigna/scipy,endolith/scipy,arokem/scipy,mdhaber/scipy,aeklant/scipy,rgommers/scipy,perimosocordiae/scipy,jor-/scipy,jamestwebber/scipy,endolith/scipy,jamestwebber/scipy,pizzathief/scipy,vigna/scipy,person142/scipy,zerothi/scipy,rgommers/scipy,lhilt/scipy,vigna/scipy,aarchiba/scipy,jamestwebber/scipy,rgommers/scipy,perimosocordiae/scipy,Eric89GXL/scipy,WarrenWeckesser/scipy,Eric89GXL/scipy,zerothi/scipy,jor-/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,perimosocordiae/scipy,anntzer/scipy,ilayn/scipy,aarchiba/scipy