+
    0iw                     X     ^ RI t ^ RIHt R tR#   ] d     Li ; i  ] d     Li ; i)    Nxc                f  a  \        S 4      p\        V 3R l\        V4       4       4      p\        V,          P	                  \        ^ V4      P                  4       pV^ ,          .p\        V4       F0  pVP                  VR,          V,          P                  4       4       K2  	  \        P                  ! ^ 4      .p\        ^V4       F<  pVP                  WE,          P                  \        V^,
          4      V,          4       K>  	  V Uu. uF  p\        P                  ! V4      NK  	  ppV# u upi )at  Given a series

f(x) = a[1]*x + a[2]*x**2 + ... + a[n-1]*x**(n - 1),

use the Lagrange inversion formula to compute a series

g(x) = b[1]*x + b[2]*x**2 + ... + b[n-1]*x**(n - 1)

so that f(g(x)) = g(f(x)) = x mod x**n. We must have a[0] = 0, so
necessarily b[0] = 0 too.

The algorithm is naive and could be improved, but speed isn't an
issue here and it's easy to read.

c              3   Z   <"   T F   pSV,          \         V,          ,          x  K"  	  R # 5i)Nr   ).0ias   & ]/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/special/_precompute/utils.py	<genexpr>%lagrange_inversion.<locals>.<genexpr>   s     (x!AaDAIIxs   (+)lensumranger   seriesremoveOappendexpandmpmpfcoeff)r	   nfhhpowerkbr   s   f       r
   lagrange_inversionr      s      	AA(uQx((A	
1Q1%%'AdVF1Xvbz!|++-. 	A1a[	AE*1,- AqAAH 	s   D.)mpmathr   ImportError	sympy.abcr   r        r
   <module>r$      sA   		
  		
  		s     ))