ó
¡¼™\c           @   so  d  Z  d d l m Z m Z m Z m Z m Z m Z m Z m	 Z	 m
 Z
 m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z e d ƒ Z e d ƒ Z e d ƒ Z e d ƒ Z e d	 ƒ Z e d
 ƒ Z e d ƒ Z e d ƒ Z e d ƒ Z d „  Z  d „  Z! d „  Z" d „  Z# d „  Z$ d „  Z% d „  Z& d „  Z' d „  Z( e d „  ƒ Z) d „  Z* d S(   sp   
If the arbitrary constant class from issue 4435 is ever implemented, this
should serve as a set of test cases.
iÿÿÿÿ(   t   acost   cost   cosht   Eqt   expt   Functiont   It   Integralt   logt   Powt   St   sint   sinht   sqrtt   Symbolt   Add(   t   constantsimpt   constant_renumber(   t   XFAILt   xt   yt   zt   u2t   _at   C1t   C2t   C3t   fc           C   sò  t  t t t t g ƒ ƒ t t k s, t ‚ t  t t t t g ƒ ƒ t t k sX t ‚ t  t t t t g ƒ ƒ t t k s„ t ‚ t  t t t t g ƒ ƒ t t k s° t ‚ t  t d t t g ƒ ƒ t k sØ t ‚ t  t t d t g ƒ ƒ t k s t ‚ t  t t t t t t g ƒ ƒ t t k s3t ‚ t  t t t t t t g ƒ ƒ t t k sft ‚ t  t t t t t t g ƒ ƒ t t k s™t ‚ t  t t t t t t g ƒ ƒ t t k sÌt ‚ t  t t t t t t g ƒ ƒ t t k sÿt ‚ t  t t t t d t g ƒ ƒ t t t d k s;t ‚ t  t t t t d t g ƒ ƒ t t t d k swt ‚ t  t t t t t g ƒ ƒ t t t k s«t ‚ t  t t t t t g ƒ ƒ t t t k sßt ‚ t  t t t t t t g ƒ ƒ t t k st ‚ t  t t t t t t g ƒ ƒ t t k sEt ‚ t  t t t t t t g ƒ ƒ t t k sxt ‚ t  t t t d t t t g ƒ ƒ t k s«t ‚ t  t t t t t t g ƒ ƒ t t k sÞt ‚ t  t t t t t t g ƒ ƒ t t k st ‚ t  t t t t t t g ƒ ƒ t t k sDt ‚ t  t t t t t t d t t g ƒ ƒ t t d k s‡t ‚ t  t t t t t t t t g ƒ ƒ t t k sÁt ‚ t  t t t t d t t ƒ t t t g ƒ ƒ t t k st ‚ t  t t t t g ƒ ƒ t k s-t ‚ t  t t t t t g ƒ ƒ t k sXt ‚ t  t t t t t g ƒ ƒ t k sƒt ‚ t  t t t t t t g ƒ ƒ t k s²t ‚ t  t t t d t t g ƒ ƒ t t d t k sît ‚ d  S(   Ni   i   (	   R   R   R   R   t   AssertionErrorR   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_mul   s<    ,,,,((33333<<443333333C:D(++/c           C   s€  t  t t t t g ƒ ƒ t k s( t ‚ t  t t d t g ƒ ƒ t k sP t ‚ t  t d t t g ƒ ƒ t k sx t ‚ t  t t t t t g ƒ ƒ t k s£ t ‚ t  t t t t g ƒ ƒ t t k sÏ t ‚ t  t t t t g ƒ ƒ t k s÷ t ‚ t  t t t t t g ƒ ƒ t k s"t ‚ t  t t t t t g ƒ ƒ t k sMt ‚ t  t t t t t t g ƒ ƒ t k s|t ‚ d  S(   Ni   (   R   R   R   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_add8   s    (((+,(++c           C   sµ  t  t t t t g ƒ ƒ t k s( t ‚ t  t t t t ƒ t g ƒ ƒ t k sU t ‚ t  t t t t g ƒ ƒ t k s} t ‚ t  t t t t t g ƒ ƒ t k s¨ t ‚ t  t t t t t g ƒ ƒ t k sÓ t ‚ t  t t t t t g ƒ ƒ t k sþ t ‚ t  t t t t t g ƒ ƒ t k s)t ‚ t  t t t t g ƒ ƒ t t k sUt ‚ t  t t d t g ƒ ƒ t k s}t ‚ t  t t t t t g ƒ ƒ t t t k s±t ‚ d  S(   Ni   (   R   R   R   R   R	   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_power_as_baseD   s    (-(++++,(c           C   st  t  t t t t g ƒ ƒ t t k s, t ‚ t  t t t t t g ƒ ƒ t k sW t ‚ t  t t t t t t g ƒ ƒ t t k sŠ t ‚ t  t t t t t g ƒ ƒ t t t k s¾ t ‚ t  t t t t t t g ƒ ƒ t t k sñ t ‚ t  t t t t t t g ƒ ƒ t t k s$t ‚ t  t t t t t t g ƒ ƒ t t k sWt ‚ t  t t t t t g ƒ ƒ t t t k s‹t ‚ t  t d t t g ƒ ƒ t k s³t ‚ t  t t d ƒ t t g ƒ ƒ t k sát ‚ t  t t t ƒ t g ƒ ƒ t k st ‚ t  t t t t ƒ t g ƒ ƒ t t t ƒ k sCt ‚ t  t t d t ƒ t g ƒ ƒ t k spt ‚ d  S(   Ni   (	   R   R   R   R   R   R   R
   R   R	   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_power_as_expR   s$    ,+310301(.*5c           C   sá  t  t t t ƒ t g ƒ ƒ t k s* t ‚ t  t t t ƒ t g ƒ ƒ t k sT t ‚ t  t t t t ƒ t g ƒ ƒ t k s t ‚ t  t t t t ƒ t t g ƒ ƒ t k s± t ‚ t  t t t t ƒ t t g ƒ ƒ t k sá t ‚ t  t t t t ƒ t t g ƒ ƒ t k st ‚ t  t t t t ƒ t g ƒ ƒ t t t ƒ k sGt ‚ t  t t t t ƒ t t g ƒ ƒ t k swt ‚ t  t t t t ƒ t t g ƒ ƒ t k s§t ‚ t  t t t t t ƒ t t t g ƒ ƒ t k sÝt ‚ d  S(   N(	   R   R   R   R   R   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_functiong   s    **-000300c           C   s@   t  t t t t t ƒ t g ƒ ƒ t t t t ƒ k s< t ‚ d  S(   N(   R   R   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_function_multipleu   s    c           C   sÿ   t  t t d d t g ƒ ƒ t k s, t ‚ t  t t d t t g ƒ ƒ t t k s\ t ‚ t  t t d d d t g ƒ ƒ t k sŒ t ‚ t  t t d t ƒ t t d ƒ t g ƒ ƒ t t k sÌ t ‚ t  t d t t t t g ƒ ƒ t k sû t ‚ d  S(   Ni   (   R   R   R   R   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_multiple|   s    ,00=c           C   s,   t  t  t t t  t  t ƒ k s( t ‚ d  S(   N(   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_repeated„   s    c       
   C   s%  t  t t t d t ƒ t t ƒ t t t t t g ƒ ƒ t  t t t ƒ t t d t ƒ ƒ k sl t ‚ t  t t t	 t ƒ t
 t t t d ƒ t t t d ƒ ƒ t t g ƒ ƒ t  t t	 t ƒ t t t d ƒ t t t d ƒ ƒ ƒ k sû t ‚ t  t t t	 t ƒ t t t t ƒ ƒ ƒ t g ƒ ƒ t t	 t ƒ t t t t ƒ ƒ ƒ k s^t ‚ t  t t t t	 t ƒ t ƒ d t t t	 t ƒ ƒ d ƒ t g ƒ ƒ t t t t	 t ƒ ƒ d t t t	 t ƒ ƒ d ƒ k sät ‚ t  t t t t t d ƒ t d t ƒ t t	 t ƒ ƒ t ƒ t d d t	 t ƒ d d ƒ t g ƒ ƒ t t t t t ƒ t t	 t ƒ ƒ ƒ t d d t	 t ƒ d d ƒ k s t ‚ t  t t t t	 t ƒ t ƒ t t	 t ƒ t ƒ d t t t ƒ t t	 t ƒ t ƒ t t	 t ƒ t ƒ d d ƒ t g ƒ ƒ t t t	 t ƒ t ƒ t t	 t ƒ t ƒ d t t t ƒ t t	 t ƒ t ƒ t t	 t ƒ t ƒ d d ƒ k s t ‚ t  t t t d t d t d ƒ t t t t t	 t ƒ f ƒ t t	 t ƒ t ƒ d ƒ t g ƒ ƒ t t d t t d t d ƒ t t t t	 t ƒ f ƒ t t t	 t ƒ ƒ d ƒ k sdt ‚ g  t t	 t ƒ t t t t d ƒ ƒ t t	 t ƒ t t t t d ƒ ƒ g D] }  t |  t g ƒ ^ q¶t t	 t ƒ t t t t ƒ ƒ t t	 t ƒ t t t t ƒ ƒ g k s!t ‚ d  S(   Ni   i   i    i   iÿÿÿÿ(   R   R   R   R   R   R   R   R   R   R   R   R   R   R    R   R   R   R   R   R   R   (   t   i(    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_ode_solutions‡   s.    ;1HD5.C@^RD?>?%@9&mc           C   s9   t  t t t t t t g ƒ t t t k s5 t ‚ d  S(   N(   R   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_nonlocal_simplification¢   s    c           C   s”   t  t t d t t ƒ t ƒ t g ƒ t t t t ƒ t ƒ k sH t ‚ t  t t d t t ƒ t ƒ t g ƒ t t t ƒ t t ƒ k s t ‚ d  S(   Ni   (   R   R   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   test_constant_Eq§   s    HN(+   t   __doc__t   sympyR    R   R   R   R   R   R   R   R   R	   R
   R   R   R   R   R   t   sympy.solvers.odeR   R   t   sympy.utilities.pytestR   R   R   R   R   R   R   R   R   R   R   R   R   R    R!   R"   R#   R$   R&   R'   R(   (    (    (    sD   lib/python2.7/site-packages/sympy/solvers/tests/test_constantsimp.pyt   <module>   s.   j	!								