| 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� � @ sP d Z ddlmZmZmZ ddlmZ ddlmZ ddl m
Z
G dd� de�ZdS ) z
Physical quantities.
� )�
AtomicExpr�Symbol�sympify)�_QuantityMapper)�Prefix)�SymPyDeprecationWarningc @ s� e Zd ZdZdZdZdZdZdZ d*dd�Z d+dd �Z
d+d
d�Zdd
� Zdd� Z
edd� �Zedd� �Zedd� �Zedd� �Zdd� Zdd� Zdd� Zdd� Zed+d d!��Zed+d"d#��Zd$d%� Zd+d&d'�Zed(d)� �ZdS ),�QuantityzX
Physical quantity: can be a unit of measure, a constant or a generic quantity.
TFNc K s� t |t�s t|�}t |t�st |t�s|||}}}|d ur)tddddd��� |d ur7tddddd��� |d u r>|}n t |t�rGt|�}t�| ||�}
||
_||
_||
_ ||
_
||
_||
_|d uri|
�
|� |d urr|
�|� |
S )Nz1.3i�7 zQuantity argumentsz&unit_system.set_quantity_dimension_map��deprecated_since_version�issue�feature�
useinstead�SI_quantity_scale_factors)�
isinstancer �strr �warnr �__new__�_name�_abbrev�_latex_repr�
_unicode_repr�_ascii_repr�_mathml_repr�
set_dimension�set_scale_factor)�cls�name�abbrev� dimension�scale_factor�
latex_repr�pretty_unicode_repr�pretty_ascii_repr�mathml_presentation_repr�assumptions�obj� r&