L ibdZddlZ ddlZddlmZdZdZ e dk(re yy#e$rYwxYw)zCompute a Pade approximation for the principal branch of the Lambert W function around 0 and compare it to various other approximations. NctdDcgc](}tjtjd|*}}tj|dd\}}||fScc}w)Nr)n)rangempmathdifflambertwpade)rderivspqs h/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/scipy/special/_precompute/lambertw.py lambertw_padersOrPsN  #  +\ zFq  s &..