| 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\T � @ s� d dl mZmZmZmZmZ d dlmZmZm Z d dl
mZ d dlm
Z
mZmZ d dlmZmZ d dlmZ dd� Zd d
� Zdd� Zd
d� Zd(dd�Zdd� ZG dd� de�Zdd� Zdd� Zd)dd�Zdd� Z dd � Z!d!d"� Z"d#d$� Z#d%d&� Z$d'S )*� )�Add�Expr�Mul�S�sympify)�_mexpand� count_ops�
expand_mul)�Dummy)�root�sign�sqrt)�Poly�PolynomialError)�default_sort_keyc C s | j o| jjot| j�tju S )z/Return True if expr is a sqrt, otherwise False.)�is_Pow�exp�is_Rational�absr �Half)�expr� r �;/usr/lib/python3/dist-packages/sympy/simplify/sqrtdenest.py�is_sqrt s r c C sV | t ju rdS | jrdS | js| jrtdd� | jD �td�S t| �r)t | j
�d S dS )a� Return the maximum depth of any square root argument of p.
>>> from sympy.functions.elementary.miscellaneous import sqrt
>>> from sympy.simplify.sqrtdenest import sqrt_depth
Neither of these square roots contains any other square roots
so the depth is 1:
>>> sqrt_depth(1 + sqrt(2)*(1 + sqrt(3)))
1
The sqrt(3) is contained within a square root so the depth is
2:
>>> sqrt_depth(1 + sqrt(2)*sqrt(1 + sqrt(3)))
2
� r c S � g | ]}t |��qS r ��
sqrt_depth��.0�xr r r �
<listcomp>&