§
    OŠtjÜ  ã                   óÂ   — d Z ddlmZmZ ddlmZ ddlmZmZ  G d„ de¦  «        Z	 G d„ de	¦  «        Z
 G d	„ d
e	¦  «        Z G d„ de	¦  «        Z G d„ de	¦  «        ZdS )z- This module contains the Mathieu functions.
é    )ÚDefinedFunctionÚArgumentIndexError)Úsqrt)ÚsinÚcosc                   ó   — e Zd ZdZdZd„ ZdS )ÚMathieuBasezj
    Abstract base class for Mathieu functions.

    This class is meant to reduce code duplication.

    Tc                 ó²   — | j         \  }}}|                      |                     ¦   «         |                     ¦   «         |                     ¦   «         ¦  «        S ©N)ÚargsÚfuncÚ	conjugate)ÚselfÚaÚqÚzs       úg/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/sympy/functions/special/mathieu_functions.pyÚ_eval_conjugatezMathieuBase._eval_conjugate   s=   € Ø”)‰ˆˆ1ˆaØ�yŠy˜Ÿš™œ¨¯ª©¬°q·{²{±}´}ÑEÔEÐEó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
unbranchedr   © r   r   r	   r	   	   s9   € € € € € ðð ð €JðFð Fð Fð Fð Fr   r	   c                   ó0   — e Zd ZdZdd„Zed„ ¦   «         ZdS )Úmathieusaè  
    The Mathieu Sine function $S(a,q,z)$.

    Explanation
    ===========

    This function is one solution of the Mathieu differential equation:

    .. math ::
        y(x)^{\prime\prime} + (a - 2 q \cos(2 x)) y(x) = 0

    The other solution is the Mathieu Cosine function.

    Examples
    ========

    >>> from sympy import diff, mathieus
    >>> from sympy.abc import a, q, z

    >>> mathieus(a, q, z)
    mathieus(a, q, z)

    >>> mathieus(a, 0, z)
    sin(sqrt(a)*z)

    >>> diff(mathieus(a, q, z), z)
    mathieusprime(a, q, z)

    See Also
    ========

    mathieuc: Mathieu cosine function.
    mathieusprime: Derivative of Mathieu sine function.
    mathieucprime: Derivative of Mathieu cosine function.

    References
    ==========

    .. [1] https://en.wikipedia.org/wiki/Mathieu_function
    .. [2] https://dlmf.nist.gov/28
    .. [3] https://mathworld.wolfram.com/MathieuFunction.html
    .. [4] https://functions.wolfram.com/MathieuandSpheroidalFunctions/MathieuS/

    é   c                 óf   — |dk    r| j         \  }}}t          |||¦  «        S t          | |¦  «        ‚©Né   )r   Úmathieusprimer   ©r   Úargindexr   r   r   s        r   Úfdiffzmathieus.fdiffF   ó:   € Ø�qŠ=ˆ=Ø”i‰GˆAˆq�!Ý   A qÑ)Ô)Ð)å$ T¨8Ñ4Ô4Ð4r   c                 ó¦   — |j         r&|j        rt          t          |¦  «        |z  ¦  «        S |                     ¦   «         r | ||| ¦  «         S d S r   )Ú	is_NumberÚis_zeror   r   Úcould_extract_minus_sign©Úclsr   r   r   s       r   Úevalzmathieus.evalM   s_   € àŒ;ð 	"˜1œ9ð 	"Ý•t˜A‘w”w˜q‘y‘>”>Ð!à×%Ò%Ñ'Ô'ð 	"Ø�C˜˜1˜q˜b‘M”M�>Ð!ð	"ð 	"r   N©r   ©r   r   r   r   r%   Úclassmethodr-   r   r   r   r   r      óN   € € € € € ð+ð +ðZ5ð 5ð 5ð 5ð ð"ð "ñ „[ð"ð "ð "r   r   c                   ó0   — e Zd ZdZdd„Zed„ ¦   «         ZdS )Úmathieucaã  
    The Mathieu Cosine function $C(a,q,z)$.

    Explanation
    ===========

    This function is one solution of the Mathieu differential equation:

    .. math ::
        y(x)^{\prime\prime} + (a - 2 q \cos(2 x)) y(x) = 0

    The other solution is the Mathieu Sine function.

    Examples
    ========

    >>> from sympy import diff, mathieuc
    >>> from sympy.abc import a, q, z

    >>> mathieuc(a, q, z)
    mathieuc(a, q, z)

    >>> mathieuc(a, 0, z)
    cos(sqrt(a)*z)

    >>> diff(mathieuc(a, q, z), z)
    mathieucprime(a, q, z)

    See Also
    ========

    mathieus: Mathieu sine function
    mathieusprime: Derivative of Mathieu sine function
    mathieucprime: Derivative of Mathieu cosine function

    References
    ==========

    .. [1] https://en.wikipedia.org/wiki/Mathieu_function
    .. [2] https://dlmf.nist.gov/28
    .. [3] https://mathworld.wolfram.com/MathieuFunction.html
    .. [4] https://functions.wolfram.com/MathieuandSpheroidalFunctions/MathieuC/

    r   c                 óf   — |dk    r| j         \  }}}t          |||¦  «        S t          | |¦  «        ‚r    )r   Úmathieucprimer   r#   s        r   r%   zmathieuc.fdiff„   r&   r   c                 ó¤   — |j         r&|j        rt          t          |¦  «        |z  ¦  «        S |                     ¦   «         r | ||| ¦  «        S d S r   )r(   r)   r   r   r*   r+   s       r   r-   zmathieuc.eval‹   s]   € àŒ;ð 	"˜1œ9ð 	"Ý•t˜A‘w”w˜q‘y‘>”>Ð!à×%Ò%Ñ'Ô'ð 	!Ø�3�q˜!˜a˜R‘=”=Ð ð	!ð 	!r   Nr.   r/   r   r   r   r3   r3   V   óN   € € € € € ð+ð +ðZ5ð 5ð 5ð 5ð ð!ð !ñ „[ð!ð !ð !r   r3   c                   ó0   — e Zd ZdZdd„Zed„ ¦   «         ZdS )r"   a"  
    The derivative $S^{\prime}(a,q,z)$ of the Mathieu Sine function.

    Explanation
    ===========

    This function is one solution of the Mathieu differential equation:

    .. math ::
        y(x)^{\prime\prime} + (a - 2 q \cos(2 x)) y(x) = 0

    The other solution is the Mathieu Cosine function.

    Examples
    ========

    >>> from sympy import diff, mathieusprime
    >>> from sympy.abc import a, q, z

    >>> mathieusprime(a, q, z)
    mathieusprime(a, q, z)

    >>> mathieusprime(a, 0, z)
    sqrt(a)*cos(sqrt(a)*z)

    >>> diff(mathieusprime(a, q, z), z)
    (-a + 2*q*cos(2*z))*mathieus(a, q, z)

    See Also
    ========

    mathieus: Mathieu sine function
    mathieuc: Mathieu cosine function
    mathieucprime: Derivative of Mathieu cosine function

    References
    ==========

    .. [1] https://en.wikipedia.org/wiki/Mathieu_function
    .. [2] https://dlmf.nist.gov/28
    .. [3] https://mathworld.wolfram.com/MathieuFunction.html
    .. [4] https://functions.wolfram.com/MathieuandSpheroidalFunctions/MathieuSPrime/

    r   c                 óž   — |dk    r8| j         \  }}}d|z  t          d|z  ¦  «        z  |z
  t          |||¦  «        z  S t          | |¦  «        ‚©Nr!   é   )r   r   r   r   r#   s        r   r%   zmathieusprime.fdiffÂ   óV   € Ø�qŠ=ˆ=Ø”i‰GˆAˆq�!Ø�a‘C�˜A˜a™C™œ‘L 1Ñ$¥h¨q°!°QÑ&7Ô&7Ñ7Ð7å$ T¨8Ñ4Ô4Ð4r   c                 óÄ   — |j         r6|j        r/t          |¦  «        t          t          |¦  «        |z  ¦  «        z  S |                     ¦   «         r | ||| ¦  «        S d S r   )r(   r)   r   r   r*   r+   s       r   r-   zmathieusprime.evalÉ   sh   € àŒ;ð 	*˜1œ9ð 	*Ý˜‘7”7�3�t A™wœw q™y™>œ>Ñ)Ð)à×%Ò%Ñ'Ô'ð 	!Ø�3�q˜!˜a˜R‘=”=Ð ð	!ð 	!r   Nr.   r/   r   r   r   r"   r"   ”   r7   r   r"   c                   ó0   — e Zd ZdZdd„Zed„ ¦   «         ZdS )r5   a!  
    The derivative $C^{\prime}(a,q,z)$ of the Mathieu Cosine function.

    Explanation
    ===========

    This function is one solution of the Mathieu differential equation:

    .. math ::
        y(x)^{\prime\prime} + (a - 2 q \cos(2 x)) y(x) = 0

    The other solution is the Mathieu Sine function.

    Examples
    ========

    >>> from sympy import diff, mathieucprime
    >>> from sympy.abc import a, q, z

    >>> mathieucprime(a, q, z)
    mathieucprime(a, q, z)

    >>> mathieucprime(a, 0, z)
    -sqrt(a)*sin(sqrt(a)*z)

    >>> diff(mathieucprime(a, q, z), z)
    (-a + 2*q*cos(2*z))*mathieuc(a, q, z)

    See Also
    ========

    mathieus: Mathieu sine function
    mathieuc: Mathieu cosine function
    mathieusprime: Derivative of Mathieu sine function

    References
    ==========

    .. [1] https://en.wikipedia.org/wiki/Mathieu_function
    .. [2] https://dlmf.nist.gov/28
    .. [3] https://mathworld.wolfram.com/MathieuFunction.html
    .. [4] https://functions.wolfram.com/MathieuandSpheroidalFunctions/MathieuCPrime/

    r   c                 óž   — |dk    r8| j         \  }}}d|z  t          d|z  ¦  «        z  |z
  t          |||¦  «        z  S t          | |¦  «        ‚r:   )r   r   r3   r   r#   s        r   r%   zmathieucprime.fdiff   r<   r   c                 óÈ   — |j         r7|j        r0t          |¦  «         t          t          |¦  «        |z  ¦  «        z  S |                     ¦   «         r | ||| ¦  «         S d S r   )r(   r)   r   r   r*   r+   s       r   r-   zmathieucprime.eval  sl   € àŒ;ð 	+˜1œ9ð 	+Ý˜‘G”G�8�C¥ Q¡¤¨¡	™NœNÑ*Ð*à×%Ò%Ñ'Ô'ð 	"Ø�C˜˜1˜q˜b‘M”M�>Ð!ð	"ð 	"r   Nr.   r/   r   r   r   r5   r5   Ò   r1   r   r5   N)r   Úsympy.core.functionr   r   Ú(sympy.functions.elementary.miscellaneousr   Ú(sympy.functions.elementary.trigonometricr   r   r	   r   r3   r"   r5   r   r   r   ú<module>rD      s;  ððð ð DÐ CÐ CÐ CÐ CÐ CÐ CÐ CØ 9Ð 9Ð 9Ð 9Ð 9Ð 9Ø =Ð =Ð =Ð =Ð =Ð =Ð =Ð =ðFð Fð Fð Fð F�/ñ Fô Fð Fð;"ð ;"ð ;"ð ;"ð ;"ˆ{ñ ;"ô ;"ð ;"ð|;!ð ;!ð ;!ð ;!ð ;!ˆ{ñ ;!ô ;!ð ;!ð|;!ð ;!ð ;!ð ;!ð ;!�Kñ ;!ô ;!ð ;!ð|;"ð ;"ð ;"ð ;"ð ;"�Kñ ;"ô ;"ð ;"ð ;"ð ;"r   