| Server IP : 93.86.61.54 / Your IP : 216.73.216.206 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sympy/simplify/__pycache__/ |
Upload File : |
o
�8Va} � @ s$ d Z ddlmZ ddi fdd�ZdS )z@Tools for applying functions to specified parts of expressions. � ��sympify� c s � ���fdd�� � t | �|�S )a8
Use ``func`` to transform ``expr`` at the given level.
Examples
========
>>> from sympy import use, expand
>>> from sympy.abc import x, y
>>> f = (x + y)**2*x + 1
>>> use(f, expand, level=2)
x*(x**2 + 2*x*y + y**2) + 1
>>> expand(f)
x**3 + 2*x**2*y + x*y**2 + 1
c sV |s
�| g��R i ���S | j r| S |d8 }g }| jD ]
}|�� ||�� q| j|� S )N� )�is_Atom�args�append� __class__)�expr�level�_args�arg��_user �func�kwargsr �?/usr/lib/python3/dist-packages/sympy/simplify/traversaltools.pyr s
zuse.<locals>._user )r
r r r r r r r �use s r N)�__doc__�
sympy.corer r r r r r �<module> s