
    xfe                     "    d Z ddlmZmZmZ d Zy)zl
Here we perform some symbolic computations required for the N-D
interpolation routines in `interpnd.pyx`.

    )symbolsbinomialMatrixc                  Z   t        g d      \  } }}}}| |d| z  z   dz  |d|z  z   dz  |g}d}t        d      D ])  }|t        d|      ||   z  ||z  z  d|z
  d|z
  z  z  z  }+ |j                  |d      j	                         }|dz  j                  |ddf      j	                         }	t        |	j                  |dz        |	j                  ||z        dz  g|	j                  ||z        dz  |	j                  |dz        gg      }
t        |	j                  |      j                  |d      g|	j                  |      j                  |d      gg      dz  }t        d       t        |
       t        d       t        |       t        d	       t        |
j                         |z         y )
N)f1f2df1df2x   r            ABsolution)r   ranger   diffexpand	integrater   coeffsubsprintinv)r   r   r	   r
   r   cwkwppintwpp2r   r   s               B/usr/lib/python3/dist-packages/scipy/interpolate/_interpnd_info.py_estimate_gradients_2d_globalr!   	   s    ""ABBCa	cAbDj!^cAbDj!^R0A	A1X 7	Xa^ad"QT)1Q3!A#,667 &&A,


CAv  !Q+224GsAv&c#g(>q(@As3w')7==a+@AC 	DA 	s#((a01s#((a013 	467	8A 
#J	!H	#J	!H	*	!%%'A+    N)__doc__sympyr   r   r   r!    r"   r    <module>r&      s   
 , +r"   