Ë
    7^(hÜ  ã                   ó¢   — 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y)z- This module contains the Mathieu functions.
é    )ÚDefinedFunctionÚArgumentIndexError)Úsqrt)ÚsinÚcosc                   ó   — e Zd ZdZdZd„ Zy)ÚMathieuBasezj
    Abstract base class for Mathieu functions.

    This class is meant to reduce code duplication.

    Tc                 óœ   — | j                   \  }}}| j                  |j                  «       |j                  «       |j                  «       «      S ©N)ÚargsÚfuncÚ	conjugate)ÚselfÚaÚqÚzs       úg/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/sympy/functions/special/mathieu_functions.pyÚ_eval_conjugatezMathieuBase._eval_conjugate   s6   € Ø—)‘)‰ˆˆ1ˆaØ�y‰y˜Ÿ™›¨¯©«°q·{±{³}ÓEÐEó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
unbranchedr   © r   r   r	   r	   	   s   „ ñð €JóFr   r	   c                   ó(   — e Zd ZdZdd„Zed„ «       Zy)Ú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                 ó^   — |dk(  r| j                   \  }}}t        |||«      S t        | |«      ‚©Né   )r   Úmathieusprimer   ©r   Úargindexr   r   r   s        r   Úfdiffzmathieus.fdiffF   ó4   € Ø�qŠ=Ø—i‘i‰GˆAˆq�!Ü   A qÓ)Ð)ä$ T¨8Ó4Ð4r   c                 óš   — |j                   r#|j                  rt        t        |«      |z  «      S |j	                  «       r | ||| «       S y r   )Ú	is_NumberÚis_zeror   r   Úcould_extract_minus_sign©Úclsr   r   r   s       r   Úevalzmathieus.evalM   sD   € à�;Š;˜1Ÿ9š9Ü”t˜A“w˜q‘y“>Ð!à×%Ñ%Ô'Ù˜˜1˜q˜b“M�>Ð!ð (r   N©é   ©r   r   r   r   r$   Úclassmethodr,   r   r   r   r   r      ó!   „ ñ+óZ5ð ñ"ó ñ"r   r   c                   ó(   — e Zd ZdZdd„Zed„ «       Zy)Ú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/

    c                 ó^   — |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 |j	                  «       r | ||| «      S y r   )r'   r(   r   r   r)   r*   s       r   r,   zmathieuc.eval‹   sB   € à�;Š;˜1Ÿ9š9Ü”t˜A“w˜q‘y“>Ð!à×%Ñ%Ô'Ù�q˜!˜a˜R“=Ð ð (r   Nr-   r/   r   r   r   r3   r3   V   ó!   „ ñ+óZ5ð ñ!ó ñ!r   r3   c                   ó(   — e Zd ZdZdd„Zed„ «       Zy)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/

    c                 óŽ   — |dk(  r5| j                   \  }}}d|z  t        d|z  «      z  |z
  t        |||«      z  S t        | |«      ‚©Nr    é   )r   r   r   r   r"   s        r   r$   zmathieusprime.fdiffÂ   óN   € Ø�qŠ=Ø—i‘i‰GˆAˆq�!Ø�a‘Cœ˜A˜a™C›‘L 1Ñ$¤h¨q°!°QÓ&7Ñ7Ð7ä$ T¨8Ó4Ð4r   c                 ó°   — |j                   r/|j                  r#t        |«      t        t        |«      |z  «      z  S |j	                  «       r | ||| «      S y r   )r'   r(   r   r   r)   r*   s       r   r,   zmathieusprime.evalÉ   sK   € à�;Š;˜1Ÿ9š9Ü˜“7œ3œt A›w q™y›>Ñ)Ð)à×%Ñ%Ô'Ù�q˜!˜a˜R“=Ð ð (r   Nr-   r/   r   r   r   r!   r!   ”   r7   r   r!   c                   ó(   — e Zd ZdZdd„Zed„ «       Zy)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/

    c                 óŽ   — |dk(  r5| 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                   r0|j                  r$t        |«       t        t        |«      |z  «      z  S |j	                  «       r | ||| «       S y r   )r'   r(   r   r   r)   r*   s       r   r,   zmathieucprime.eval  sO   € à�;Š;˜1Ÿ9š9Ü˜“G�8œC¤ Q£¨¡	›NÑ*Ð*à×%Ñ%Ô'Ù˜˜1˜q˜b“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      sW   ðñ÷ DÝ 9ß =ôF�/ô Fô;"ˆ{ô ;"ô|;!ˆ{ô ;!ô|;!�Kô ;!ô|;"�Kõ ;"r   