U
    ZÊ¹j 
  ã                   @   sÊ   d dl mZ dZedefd�Zedefd�Zer4es8dZd dlmZ d dlm	Z	 d d	l
mZmZ ed
ƒ\ZZZdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd!S )"é    )Úimport_moduleFz	pyglet.gl)Zcatchzpyglet.windowT)Úsymbols)Úlog)ÚcosÚsinzx, y, zc                  C   s.   ddl m}  | ttdddgdd�}| ¡  d S )Nr   ©Ú
PygletPlotéûÿÿÿé   é   F©Úvisible©Úsympy.plotting.pygletplotr   ÚxÚwait_for_calculations©r   Úp© r   úl/var/www/html/bwave/python/venv/lib/python3.8/site-packages/sympy/plotting/pygletplot/tests/test_plotting.pyÚtest_plot_2d   s    r   c                  C   s2   ddl m}  | dt tdddgdd�}| ¡  d S )Nr   r   é   éÿÿÿÿé   Fr   r   r   r   r   r   Útest_plot_2d_discontinuous   s    r   c                  C   s<   ddl m}  | tt tdddgtdddgdd�}| ¡  d S )Nr   r   r	   r
   Fr   ©r   r   r   Úyr   r   r   r   r   Útest_plot_3d   s    $r   c                  C   s<   ddl m}  | dt tdddgtdddgdd	�}| ¡  d S )
Nr   r   r   éýÿÿÿé   é   r   Fr   r   r   r   r   r   Útest_plot_3d_discontinuous$   s    $r!   c                  C   s4   ddl m}  | dt tdddgddd�}| ¡  d S )	Nr   r   r   r   r   ú
mode=polarFr   r   r   r   r   r   Útest_plot_2d_polar*   s    r#   c                  C   s>   ddl m}  | dt tdddgtdddgddd	�}| ¡  d S )
Nr   r   r   çTã¥›Ä @r   r   zmode=polar;style=solidFr   )r   r   r   r   r   r   r   r   r   Útest_plot_3d_cylinder0   s     
 
 þr%   c                  C   s:   ddl m}  | dtdddgtdddgddd	�}| ¡  d S )
Nr   r   r   r$   r   gTã¥›Ä 	@zmode=spherical;style=wireframeFr   r   r   r   r   r   Útest_plot_3d_spherical8   s     
 ÿýr&   c                  C   s8   ddl m}  | ttƒttƒtdddgdd�}| ¡  d S )Nr   r   r$   r   Fr   ©r   r   r   r   r   r   r   r   r   r   Útest_plot_2d_parametricA   s     r(   c                  C   s>   ddl m}  | ttƒttƒtd tdddgdd�}| ¡  d S )Nr   r   g      @r$   r   Fr   r'   r   r   r   r   Útest_plot_3d_parametricG   s    &r)   c                  C   s4   ddl m}  | ttƒtdddgddd�}| ¡  d S )Nr   r   r$   r   r"   Fr   )r   r   r   r   r   r   r   r   r   Ú_test_plot_logM   s    r*   c                  C   sH   ddl m}  ddlm} | |tt tdtftdtfƒdd�}| ¡  d S )Nr   r   )ÚIntegralr   Fr   )r   r   Zsympy.integrals.integralsr+   Úzr   r   r   )r   r+   r   r   r   r   Útest_plot_integralS   s    $r-   N)Zsympy.external.importtoolsr   ÚdisabledÚOSErrorZ	pyglet_glZpyglet_windowZsympy.core.symbolr   Z&sympy.functions.elementary.exponentialr   Z(sympy.functions.elementary.trigonometricr   r   r   r   r,   r   r   r   r!   r#   r%   r&   r(   r)   r*   r-   r   r   r   r   Ú<module>   s(   	