| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sympy/physics/vector/__pycache__/ |
Upload File : |
�
M�Zd�� � � � d dl mZmZmZmZmZmZmZmZ m
Z
d dlmZ d dl
mZ d dlmZmZ d dlmZ d dlmZ ddgZ G d � de� Z G d
� d� Zd� Zy)
� ) �diff�expand�sin�cos�sympify�eye�zeros�ImmutableMatrix�
MatrixBase)�Symbol)�trigsimp)�Vector�
_check_vector)� translate)�warn�
CoordinateSym�ReferenceFramec �D � � e Zd ZdZ� fd�Zed� � Zd� Zd� Zd� Z � xZ
S )r a�
A coordinate symbol/base scalar associated wrt a Reference Frame.
Ideally, users should not instantiate this class. Instances of
this class must only be accessed through the corresponding frame
as 'frame[index]'.
CoordinateSyms having the same frame and index parameters are equal
(even though they may be instantiated separately).
Parameters
==========
name : string
The display name of the CoordinateSym
frame : ReferenceFrame
The reference frame this base scalar belongs to
index : 0, 1 or 2
The index of the dimension denoted by this coordinate variable
Examples
========
>>> from sympy.physics.vector import ReferenceFrame, CoordinateSym
>>> A = ReferenceFrame('A')
>>> A[1]
A_y
>>> type(A[0])
<class 'sympy.physics.vector.frame.CoordinateSym'>
>>> a_y = CoordinateSym('a_y', A, 1)
>>> a_y == A[1]
True
c � �� i }t �| � || � t �| � | |fi |��}t |� |t dd� vrt d� �||f|_ |S )Nr � zInvalid index specified)�super� _sanitize�__xnew__�_check_frame�range�
ValueError�_id)�cls�name�frame�index�assumptions�obj� __class__s ��</usr/lib/python3/dist-packages/sympy/physics/vector/frame.py�__new__zCoordinateSym.__new__3 sa �� � ��
���+�s�+��g��s�D�8�K�8���U����a���#��6�7�7��%�.����
� c � � | j d S )Nr )r ��selfs r% r zCoordinateSym.frame? s � ��x�x��{�r'