| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 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/physics/units/__pycache__/ |
Upload File : |
o
�8Va= � @ s� d Z ddlmZ ddlmZ ddlmZmZmZm Z m
Z
ddlmZ ddl
mZ ddlmZ ddlmZ dd lmZ dd
lmZ dd� Zddd�Zdd� Zddd�ZdS )zA
Several methods to simplify expressions involving unit objects.
� )�reduce)�Iterable)�Add�Mul�Pow�Tuple�sympify)�ordered)�NonInvertibleMatrixError)� Dimension)�Prefix)�Quantity)�siftc
s� ddl m} ��� �t��| ��}�j|dd�� �fdd�|D ���fdd��D �}dd � � D �}|�t|��s:d S t� ��fd
d�|D �}|��fdd�|D ��}|� fdd�|D ��}z|�|�} W | S t yo Y d S w )
Nr )�MatrixT��mark_dimensionlessc s g | ] }t � �|���qS � )r �get_dimensional_expr)�.0�x)�unit_systemr �:/usr/lib/python3/dist-packages/sympy/physics/units/util.py�
<listcomp> s z3_get_conversion_matrix_for_expr.<locals>.<listcomp>c s$ g | ]}� j |d d�D ]}|�qqS )Tr )�get_dimensional_dependencies)r r �i)�dimension_systemr r r s $ c S s h | ]}|�qS r r �r r r r r � <setcomp> s z2_get_conversion_matrix_for_expr.<locals>.<setcomp>c s"