o
    §ƒðjK™  ã                   @   s¼   d Z ddlmZ ddlmZmZ ddlmZmZm	Z	m
Z
mZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ edddgid�ZG dd„ dƒZdS )zJ
This module can be used to solve probelsm related to 2D parabolic arches
é    )Úsympify)ÚSymbolÚsymbols)ÚdiffÚsqrtÚcosÚsinÚatanÚradÚMin)ÚEq)Úsolve)Ú	Piecewise)Úplot)Úlimit)Údoctest_depends_on)Úimport_moduleÚnumpyÚfromlistÚarange)Úimport_kwargsc                   @   sð   e Zd ZdZdd„ Zedd„ ƒZedd„ ƒZedd	„ ƒZed
d„ ƒZ	edd„ ƒZ
edd„ ƒZd1dd„Zdd„ Zd1dd„Zd1dd„Zd1dd„Zdd„ Zd2dd„Zd2dd „Zd2d!d"„Zd#d$„ Zed%d&�d'd(„ ƒZd)d*„ Zd+d,„ Zd-d.„ Zd/d0„ ZdS )3ÚArchaö  
    This class is used to solve problems related to a three hinged arch(determinate) structure.

    An arch is a curved vertical structure spanning an open space underneath it.

    Arches can be used to reduce the bending moments in long-span structures.


    Arches are used in structural engineering(over windows, door and even bridges)

    because they can support a very large mass placed on top of them.

    Example
    ========
    >>> from sympy.physics.continuum_mechanics.arch import Arch
    >>> a = Arch((0,0),(10,0),crown_x=5,crown_y=5)
    >>> a.get_shape_eqn
    5 - (x - 5)**2/5

    >>> from sympy.physics.continuum_mechanics.arch import Arch
    >>> a = Arch((0,0),(10,1),crown_x=6)
    >>> a.get_shape_eqn
    9/5 - (x - 6)**2/20
    c                 K   s@  d | _ t|d ƒt|d ƒf| _t|d ƒt|d ƒf| _d | _d | _d|v r.t|d ƒ| _d|v r9t|d ƒ| _| j| _ i | _i | _| j| jdœ| _	i | _
dddœ| _d | _d | _tdƒdtd	ƒdtd
ƒdtdƒdi| _tƒ | _tƒ | _i | _i | _i | _i | _tdƒ| _tdƒ| _tdƒ| _tdƒ| _d | _d | _d | _d S )Nr   é   Úcrown_xÚcrown_y)ÚconcentratedÚdistributedÚhinge)ÚleftÚrightÚR_A_xÚR_A_yÚR_B_xÚR_B_y©r   T)Ú
_shape_eqnr   Ú_left_supportÚ_right_supportÚ_crown_xÚ_crown_yÚget_shape_eqnÚ_conc_loadsÚ_distributed_loadsÚ_loadsÚ_loads_appliedÚ	_supportsÚ_memberÚ_member_forcer   Ú_reaction_forceÚsetÚ_points_disc_xÚ_points_disc_yÚ	_moment_xÚ	_moment_yÚ_load_xÚ_load_yr   Ú_moment_x_funcÚ_moment_y_funcÚ_load_x_funcÚ_load_y_funcÚ_bending_momentÚ_shear_forceÚ_axial_force)ÚselfÚleft_supportÚright_supportÚkwargs© rE   ú¨/tmp/claude-1000/-var-www-html-academy/3f42efd1-c2b7-4d08-9b05-30d86bb35479/scratchpad/piper/venv/lib/python3.10/site-packages/sympy/physics/continuum_mechanics/arch.pyÚ__init__&   s>   &




zArch.__init__c                 C   s„  | j r| j S tdƒ\}}}tddd�}| jr`| jr`| j}| j}||| d  | | }| || jd || jd i¡}t||ƒ}	|	d || d  | }| || jd i¡| jd kr^t	dƒ‚|S | jr¾| j}||| d  | | }| || jd || jd i¡}| || jd || jd i¡}
t||
f||fƒ}	t
|	ƒdk s¥|	| dkr©t	d	ƒ‚|	| || d  |	|  }|	| | _|S td
ƒ‚)z3returns the equation of the shape of arch developedzx y cÚaF)Úpositiveé   r   r   zQprovided coordinates of crown and supports are not consistent with parabolic archzYparabolic arch cannot be constructed with the provided coordinates, try providing crown_yz(please provide crown_x to construct arch)r%   r   r   r(   r)   Úsubsr&   r   r'   Ú
ValueErrorÚlenÚKeyError)rA   ÚxÚyÚcrH   Úx0Úy0Úparabola_eqnÚeq1ÚsolutionÚeq2rE   rE   rF   r*   H   s4   
ò
þzArch.get_shape_eqnc                 C   ó   | j S )z\
        return the position of the applied load and angle (for concentrated loads)
        )r-   ©rA   rE   rE   rF   Ú	get_loadsj   ó   zArch.get_loadsc                 C   rX   )z-
        Returns the type of support
        )r/   rY   rE   rE   rF   Úsupportsq   r[   zArch.supportsc                 C   rX   )z;
        Returns the position of the left support.
        )r&   rY   rE   rE   rF   rB   x   r[   zArch.left_supportc                 C   rX   )z<
        Returns the position of the right support.
        )r'   rY   rE   rE   rF   rC      r[   zArch.right_supportc                 C   rX   )z6
        return the reaction forces generated
        )r2   rY   rE   rE   rF   Úreaction_force†   r[   zArch.reaction_forceNc              	   C   sÚ  t dƒ}t dƒ}t dƒ}	t|ƒ}t|ƒ}t|ƒ}|| jv r!tdƒ‚|dv r)tdƒ‚|dkr¢|du s5||k r9td	ƒ‚|||d
œ| j|< | j |¡ || jv ry| j|  |t	||ƒ|  |	|t	||ƒ d   8  < | j
|  |t	||ƒ|  7  < n$| t	||ƒ|  |	|t	||ƒ d   | j|< |t	||ƒ|  | j
|< d| j|< |dk�rk|du r¯tdƒ‚| j d|i¡}
||
|tt|ƒƒ |tt|ƒƒ ||dœ| j|< | j |¡ | j |¡ || jv �r| j|  | j| d || j| d   7  < | j|  | j| d 7  < n| j| d || j| d   | j|< | j| d | j|< || jv �rK| j|  | j| d |	|  8  < | j
|  | j| d 7  < n| j| d  |	|  | j|< | j| d | j
|< d| j|< dS dS )aN  
        This method adds load to the Arch.

        Parameters
        ==========

            order : Integer
                Order of the applied load.

                    - For point/concentrated loads, order = -1
                    - For distributed load, order = 0

            label : String or Symbol
                The label of the load
                - should not use 'A' or 'B' as it is used for supports.

            start : Float

                    - For concentrated/point loads, start is the x coordinate
                    - For distributed loads, start is the starting position of distributed load

            mag : Sympifyable
                Magnitude of the applied load. Must be positive

            end : Float
                Required for distributed loads

                    - For concentrated/point load , end is None(may not be given)
                    - For distributed loads, end is the end position of distributed load

            angle: Sympifyable
                The angle in degrees, the load vector makes with the horizontal
                in the counter-clockwise direction.

        Examples
        ========
        For applying distributed load

        >>> from sympy.physics.continuum_mechanics.arch import Arch
        >>> a = Arch((0,0),(10,0),crown_x=5,crown_y=5)
        >>> a.apply_load(0,'C',start=3,end=5,mag=-10)

        For applying point/concentrated_loads

        >>> from sympy.physics.continuum_mechanics.arch import Arch
        >>> a = Arch((0,0),(10,0),crown_x=5,crown_y=5)
        >>> a.apply_load(-1,'C',start=2,mag=15,angle=45)

        rP   rO   rR   z(load with the given label already exists)ÚAÚBz1cannot use the given label, reserved for supportsr   Nzprovide end greater than start)ÚstartÚendÚf_yrJ   r   éÿÿÿÿz!please provide direction of force)rO   rP   Úf_xrb   ÚmagÚanglerd   rb   r   )r   r   r.   rL   rN   r,   r5   Úaddr7   r   r9   Ú	TypeErrorr%   rK   r   r
   r   r+   r4   r6   r8   )rA   ÚorderÚlabelr`   re   ra   rf   rP   rO   rR   ÚheightrE   rE   rF   Ú
apply_load�   sP   2

6"0

0.&$èzArch.apply_loadc           	   	   C   sÐ  t dƒ}t dƒ}t dƒ}|| jv ro| j |¡ | j| d }| j| d }| j| d }| j |¡ | j|  |t||ƒ|  8  < | j|  |t||ƒ|  ||t||ƒ d   7  < | j |¡}t	d|› d	|› �ƒ dS || j
v rä| j |¡ | j
| d }| j |¡ | j |¡ | j|  | j
| d ||  7  < | j|  | j
| d
 || j
| d   8  < | j|  | j
| d
 8  < | j|  | j
| d 8  < | j
 |¡}t	d|› d	|› �ƒ dS tdƒ‚)aå  
        This methods removes the load applied to the arch

        Parameters
        ==========

        label : String or Symbol
            The label of the applied load

        Examples
        ========

        >>> from sympy.physics.continuum_mechanics.arch import Arch
        >>> a = Arch((0,0),(10,0),crown_x=5,crown_y=5)
        >>> a.apply_load(0,'C',start=3,end=5,mag=-10)
        >>> a.remove_load('C')
        removed load C: {'start': 3, 'end': 5, 'f_y': -10}
        rP   rO   rR   r`   ra   rb   rJ   zremoved load ú: rd   zlabel not foundN)r   r,   r.   Úpopr5   Úremover9   r   r7   Úprintr+   r4   r6   r8   rL   )	rA   rj   rP   rO   rR   r`   ra   re   ÚvalrE   rE   rF   Úremove_loadø   s2   
 6
$.zArch.remove_loadc                 C   sF   |dur|d |d f| _ |dur|d |d f| _d| _| j| _dS )a.  
        Change position of supports.
        If not provided , defaults to the old value.
        Parameters
        ==========

            left_support: tuple (x, y)
                x: float
                    x-coordinate value of the left_support

                y: float
                    y-coordinate value of the left_support

            right_support: tuple (x, y)
                x: float
                    x-coordinate value of the right_support

                y: float
                    y-coordinate value of the right_support
        Nr   r   )r&   r'   r%   r*   )rA   rB   rC   rE   rE   rF   Úchange_support_position+  s   zArch.change_support_positionc                 C   s   || _ || _d| _| j| _dS )a‹  
        Change the position of the crown/hinge of the arch

        Parameters
        ==========

            crown_x: Float
                The x coordinate of the position of the hinge
                - if not provided, defaults to old value

            crown_y: Float
                The y coordinate of the position of the hinge
                - if not provided defaults to None
        N)r(   r)   r%   r*   )rA   r   r   rE   rE   rF   Úchange_crown_positionI  s   zArch.change_crown_positionc                 C   sL   ddg}|r||vrt dƒ‚|| jd< |r$||vrt dƒ‚|| jd< dS dS )aâ  
        Add the type for support at each end.
        Can use roller or hinge support at each end.

        Parameters
        ==========

            left_support, right_support : string
                Type of support at respective end

                    - For roller support , left_support/right_support = "roller"
                    - For hinged support, left_support/right_support = "hinge"
                    - defaults to hinge if value not provided

        Examples
        ========

        For applying roller support at right end

        >>> from sympy.physics.continuum_mechanics.arch import Arch
        >>> a = Arch((0,0),(10,0),crown_x=5,crown_y=5)
        >>> a.change_support_type(right_support="roller")

        Úrollerr   z%supports must only be roller or hinger   r   N)rL   r/   )rA   rB   rC   Úsupport_typesrE   rE   rF   Úchange_support_type]  s   
üzArch.change_support_typec                 C   s¨   || j ks|t| jd | jd ƒk r&tdt| jd | jd ƒ› d| j › �ƒ‚tdƒ}t| j|ƒ || j	d ¡d }t
|| j  | ƒ}| j	| }| j	| }|||f| _dS )z›
        This method adds a member/rod at a particular height y.
        A rod is used for stability of the structure in case of a roller support.
        r   z&position of support must be between y=z and y=rO   rJ   N)r)   Úminr&   r'   rL   r   r   r%   rK   r(   r   r0   )rA   rP   rO   rH   Úx_diffÚx1Úx2rE   rE   rF   Ú
add_memberƒ  s   $(

zArch.add_memberc                 K   óF   |du r| j S tdƒ}d|v r|d }t| j |||d�S | j  ||¡S )zl
        return the shear at some x-coordinates
        if no x value provided, returns the formula
        NrO   Údir©r~   )r?   r   r   rK   ©rA   ÚposrD   rO   r~   rE   rE   rF   Úshear_force_at‘  ó   zArch.shear_force_atc                 K   r}   )zu
        return the bending moment at some x-coordinates
        if no x value provided, returns the formula
        NrR   r~   r   )r>   r   r   rK   )rA   r�   rD   rR   r~   rE   rE   rF   Úbending_moment_atŸ  rƒ   zArch.bending_moment_atc                 K   r}   )z‚
        return the axial/normal force generated at some x-coordinate
        if no x value provided, returns the formula
        NrO   r~   r   )r@   r   r   rK   r€   rE   rE   rF   Úaxial_force_at®  rƒ   zArch.axial_force_atc           "      C   sT  t dƒ}t dƒ}t dƒ}t| jƒ}t| jƒ}tdƒ| _tdƒ| _tdƒ| _tdƒ| _d}d}d}d}	|D ]*}
||
k}|| j	|
 7 }|| j
|
 7 }t||f| jdfƒ| _t||f| jdfƒ| _q4|D ]*}
||
k}|| j|
 7 }|	| j|
 7 }	t|	|f| jdfƒ| _t||f| jdfƒ| _qa| j || jd ¡ || jd ¡| j || jd ¡ || jd ¡ }| j || j¡ || j¡| j || j¡ || j¡ }| j || jd ¡ || j¡| j || j¡ || j¡ | j || jd ¡ || j¡ | j || j¡ || j¡ }| j || jd ¡}| j || jd ¡}| jd d	k�s$| jd
 d	k�r.| j�s.tdƒ dS tdƒ\}}}}}| jd d	k�ra| jd
 d	k�ra| jd t| jd | jd ƒk�r»|dk�ratdƒ‚t|dƒ}t|dƒ}t|| | dƒ}t|| jd | jd   || jd | jd    | dƒ}t||| jd | j   || jd | j   dƒ}t|||||f|||||fƒ}�n~| jd | jd k�rt|dƒ}t|dƒ}t|| | dƒ}t|| jd | jd   || jd | jd    | dƒ}t|| dƒ}t|||||f|||||fƒ}�n+| jd | jd k�r_t|dƒ}t|dƒ}t|| | dƒ}t|| jd | jd   || jd | jd    | dƒ}t|| dƒ}t|||||f|||||fƒ}�nØ| jd d	k�r¶| jd t| jd | jd ƒk�rÖt|dƒ}t|| dƒ}t|| | dƒ}t|| jd | jd   || jd | jd    | dƒ}t||| jd | j   || jd | j   dƒ}t|||||f|||||fƒ}�nc| jd | jd k�rKt|dƒ}t|| | dƒ}t|| | dƒ}t|| jd | jd   || jd | jd    || jd | jd    | dƒ}t||| jd | j   || jd | j   dƒ}t|||||f|||||fƒ}�nî| jd | jd k�r´t|dƒ}t|| | dƒ}t|| | dƒ}t||| jd | j   dƒ}t||| jd | jd    || jd | jd    || jd | jd    dƒ}t|||||f|||||fƒ}�nƒ| jd
 d	k�rä| jd t| jd | jd ƒk�rt|dƒ}t|| dƒ}t|| | dƒ}t||| jd | j   || jd | j   dƒ}t||| jd | jd    dƒ}t|||||f|||||fƒ}�n| jd | jd k�r}t|dƒ}t|| | dƒ}t|| | dƒ}t||| jd | j   dƒ}t||| jd | jd    || jd | jd    dƒ}t|||||f|||||fƒ}n¼| jd | jd k�rãt|dƒ}t|| | dƒ}t|| | dƒ}t||| jd | j   || jd | j   dƒ}t||| jd | jd    || jd | jd    ƒ}t|||||f|||||fƒ}nUt|| | dƒ}t|| | dƒ}t|| jd | jd   || jd | jd    | dƒ}t||| jd | j   || jd | j   dƒ}t||||f||||fƒ}| jD ]
}|| | j|< �q<| j ||¡| j ||¡ || || jd    || | j ||i¡| jd     | _tt| j|ƒƒ}| j||  }| j||  }|t|ƒ |t |ƒ  } | t |ƒ |t|ƒ  }!| | _!|!| _"dS )a�  
        This method solves for the reaction forces generated at the supports,

        and bending moment and generated in the arch and tension produced in the member if used.

        Examples
        ========

        >>> from sympy.physics.continuum_mechanics.arch import Arch
        >>> a = Arch((0,0),(10,0),crown_x=5,crown_y=5)
        >>> a.apply_load(0,'C',start=3,end=5,mag=-10)
        >>> a.solve()
        >>> a.reaction_force
        {R_A_x: 8, R_A_y: 12, R_B_x: -8, R_B_y: 8}

        >>> from sympy import Symbol
        >>> t = Symbol('t')
        >>> from sympy.physics.continuum_mechanics.arch import Arch
        >>> a = Arch((0,0),(16,0),crown_x=8,crown_y=5)
        >>> a.apply_load(0,'C',start=3,end=5,mag=t)
        >>> a.solve()
        >>> a.reaction_force
        {R_A_x: -4*t/5, R_A_y: -3*t/2, R_B_x: 4*t/5, R_B_y: -t/2}

        >>> a.bending_moment_at(4)
        -5*t/2
        rP   rO   rR   r$   r   Tr   r   ru   r   z5member must be added if any of the supports is rollerNzR_A_x R_A_y R_B_x R_B_y TrJ   zDnet force in x direction not possible under the specified conditions)#r   Úsortedr4   r5   r   r:   r;   r<   r=   r8   r6   r7   r9   rK   r'   r&   r(   r)   r/   r0   rp   r   ÚmaxrL   r   r   r2   r%   r>   r	   r   r   r   r@   r?   )"rA   rP   rO   rR   Údiscontinuity_points_xÚdiscontinuity_points_yÚaccumulated_x_momentÚaccumulated_y_momentÚaccumulated_x_loadÚaccumulated_y_loadÚpointÚcondÚmoment_AÚmoment_hinge_leftÚmoment_hinge_rightÚnet_xÚnet_yr    r!   r"   r#   ÚTrU   rW   Úeq3Úeq4Úeq5rV   Úsymbrf   ÚfxÚfyÚaxial_forceÚshear_forcerE   rE   rF   r   ¼  s   





  ÿÿÿþý( "


ÿÿÿÿÿ"

ÿÿÿ"

ÿÿÿ€"
ÿÿÿÿÿ"
ÿþþþÿÿ"
ÿþþ€"
ÿÿ""
ÿÿ 
ÿÿÿ€ÿÿÿÿÿ
ÿ þ
z
Arch.solve)r   )Úmodulesc                 C   s2  t dƒ}g }|  ¡ }g }|  ¡ }||7 }| jd }| jd }t| jd | jd ƒ}| j}	t|d |d  d |	d |d  d ƒ}
|  ¡ }|  	¡ }||7 }| j
dur˜| j
d | jd kru| | j
d d|
  g| j
d ggd	d
dddœ¡ | j
d | jd kr˜| | j
d d|
  g| j
d ggd	d
dddœ¡ | | jg| jd|
  ggd	ddddœ¡ |
|d |d  d krét| jd|
  | j|| jd | jd f|d|||d|
  |d f|d|
  |d fddd�}|S t| jd|
  | j|| jd | jd f|d|||d|
  |	d f|d|
  |	d fddd�}|S )a7  
        This method returns a plot object containing the diagram of the specified arch along with the supports
        and forces applied to the structure.

        Examples
        ========

        >>> from sympy import Symbol
        >>> t = Symbol('t')
        >>> from sympy.physics.continuum_mechanics.arch import Arch
        >>> a = Arch((0,0),(40,0),crown_x=20,crown_y=12)
        >>> a.apply_load(-1,'C',8,150,angle=270)
        >>> a.apply_load(0,'D',start=20,end=40,mag=-4)
        >>> a.apply_load(-1,'E',10,t,angle=300)
        >>> p = a.draw()
        >>> p # doctest: +ELLIPSIS
        Plot object containing:
        [0]: cartesian line: 11.325 - 3*(x - 20)**2/100 for x over (0.0, 40.0)
        [1]: cartesian line: 12 - 3*(x - 20)**2/100 for x over (0.0, 40.0)
        ...
        >>> p.show()

        rO   r   r   çš™™™™™ñ?çš™™™™™é?NrJ   ç{®Gázt?Úoé   ÚwhiteÚnone©ÚargsÚmarkerÚ
markersizeÚcolorÚmarkerfacecoloré   ç¸…ëQ¸Ž?Fçš™™™™™©?Úbrown)ÚmarkersÚshowÚannotationsÚ
rectanglesÚxlimÚylimÚaxisÚ
line_color)r   Ú_draw_loadsÚ_draw_supportsr'   r&   rx   r)   r‡   Ú_draw_rectanglesÚ_draw_fillerr0   Úappendr(   r   r%   )rA   rO   r°   r²   r³   r\   ÚxmaxÚxminÚyminÚymaxÚlimÚfillerÚ	sing_plotrE   rE   rF   Údrawˆ  s†   

*
ûÿ
ûÿûöôöz	Arch.drawc                 C   sÎ  g }| j d }| jd }t| jd | j d ƒ}| j}td| d|  ƒtd| d|  ƒkr7d| d|  }nd| d|  }| jd dkr`| | jd g| jd d|  ggdd	d
ddœ¡ n| | jd g| jd d|  ggddd
ddœ¡ | jd dkrš| | j d g| j d d|  ggdd	d
ddœ¡ n| | j d g| j d d|  ggddd
ddœ¡ | | j d g| j d d|  ggddd
ddœ¡ | | jd g| jd d|  ggddd
ddœ¡ |S )Nr   r   rŸ   r    r   ru   g{®Gáz”?r¢   é   Úblackr¥   r¦   gyé&1¬|?é   é   r   g;ßO�—n¢?Ú_)r'   r&   rx   r)   Úabsr/   r¼   )rA   Úsupport_markersr½   r¾   r¿   rÀ   Úmax_diffrE   rE   rF   r¹   ó  sŽ   

(
þøÿ
þøÿ
þøÿ
þøÿ
þøÿ
þøÿzArch._draw_supportsc           
      C   sæ  g }| j d }| jd }t| jd | j d ƒ}| j}td| d|  ƒtd| d|  ƒkr7d| d|  }nd| d|  }| jd urÅ| jd t| jd | j d ƒkrv| | jd | jd d|  f| jd | jd  d| ddd	œ¡ nO| jd | jd kr¢| | jd | jd d|  f| j d | jd  d| ddd	œ¡ n#| | jd | jd d|  ft| jd | jd  ƒd| d
dd	œ¡ | jrñ| jD ]%}| j| d }| j| d }	| || j|d  f|	| |d ddœ¡ qË|S )Nr   r   rŸ   r    rJ   r¡   g{®Gáz„?r¯   )ÚxyÚwidthrk   rf   rª   é´   r`   ra   ç333333Ã?Úorange©rÍ   rÎ   rk   rª   )	r'   r&   rx   r)   rÊ   r0   r‡   r¼   r,   )
rA   Úmemberr½   r¾   r¿   rÀ   rÌ   Úloadsr`   ra   rE   rE   rF   rº   R  s^   

(
 ûÿ
ûÿûÿ

üÿ
zArch._draw_rectanglesc                 C   sÐ  g }| j d }| jd }t| jd | j d ƒ}| j}td| d|  ƒtd| d|  ƒkr7d| d|  }nd| d|  }| jD ]n}| j| d }| j| d }	| j| d }
| j| d }| d	|tt|
ƒƒ| d
  |	t	t|
ƒƒ| d
  f||	fddddddddœdœ¡ | |› d|› d�dd|tt|
ƒƒ| d  |	t	t|
ƒƒ| d  fdœ¡ qB| j
D ]±}| j
| d }| j
| d }| j
| d }t |||| |d  ¡}t ||¡}|D ]D}|dk �r| d	|| j|d  f|| j|d  fddddddœdœ¡ qà| d	|| j|d  f|| j|d  fddddddœdœ¡ qà|dk �rH| |› dt|ƒ› d�dd|| d  | j|d!  fdœ¡ q´| |› dt|ƒ› d�dd|| d  | j|d"  fdœ¡ q´|S )#Nr   r   rŸ   r    rO   rP   rf   re   Ú g{®Gáz´?é
   Úboldg      ø?r¬   Úblue)rÎ   Ú
headlengthÚ	headwidthÚ	facecolorÚ	edgecolor)ÚtextrÍ   ÚxytextÚfontsizeÚ
fontweightÚ
arrowpropsrm   z Ng¸…ëQ¸¾?)rÝ   rß   rà   rÍ   r`   ra   rb   g      Ð?r®   rÐ   rÑ   )rÝ   rÍ   rÞ   rá   gš™™™™™É?z N/mrJ   gffffffÆ?g      À?)r'   r&   rx   r)   rÊ   r+   r¼   r   r
   r   r,   r   r   )rA   Úload_annotationsr½   r¾   r¿   rÀ   rÌ   ÚloadrO   rP   rf   re   r`   ra   Úx_pointsrŽ   rE   rE   rF   r¸   “  sŠ   

(
þ÷ÿ.üÿ
	
üÿ	üÿ
üÿ	üÿzArch._draw_loadsc           
      C   s  t dƒ}g }| jd }| jd }t| jd | jd ƒ}| j}td| d|  ƒtd| d|  ƒkr;d| d|  }nd| d|  }t | jd | jd | jd | jd  ||  ¡}|D ]%}	| |	| j	 
||	¡|d  f| jd | jd  ||  |d ddœ¡ q^|S )	NrO   r   r   rŸ   r    r­   r¯   rÒ   )r   r'   r&   rx   r)   rÊ   r   r   r¼   r%   rK   )
rA   rO   rÂ   r½   r¾   r¿   rÀ   rÌ   rä   rŽ   rE   rE   rF   r»   è  s&   

(2üÿ	zArch._draw_filler)NN)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rG   Úpropertyr*   rZ   r\   rB   rC   r]   rl   rr   rs   rt   rw   r|   r‚   r„   r…   r   r   rÄ   r¹   rº   r¸   r»   rE   rE   rE   rF   r      s@    "
!





k
3

&


 M
j_AUr   N)rè   Úsympy.core.sympifyr   Úsympy.core.symbolr   r   Úsympyr   r   r   r   r	   r
   r   Úsympy.core.relationalr   Úsympy.solvers.solversr   Úsympy.functionsr   Úsympy.plottingr   r   Úsympy.utilities.decoratorr   Úsympy.external.importtoolsr   r   r   rE   rE   rE   rF   Ú<module>   s    $