ó
    ‰*£hÜ  ã                   ó¢   • S r SSKJrJr  SSKJr  SSKJrJr   " S S\5      r	 " S S\	5      r
 " S	 S
\	5      r " S S\	5      r " S S\	5      rg)z,This module contains the Mathieu functions.
é    )ÚDefinedFunctionÚArgumentIndexError)Úsqrt)ÚsinÚcosc                   ó"   • \ rS rSrSrSrS rSrg)ÚMathieuBaseé	   z^
Abstract base class for Mathieu functions.

This class is meant to reduce code duplication.

Tc                 óš   • U R                   u  pnU R                  UR                  5       UR                  5       UR                  5       5      $ ©N)ÚargsÚfuncÚ	conjugate)ÚselfÚaÚqÚzs       Úf/home/mande/repo/quber/.venv/lib/python3.13/site-packages/sympy/functions/special/mathieu_functions.pyÚ_eval_conjugateÚMathieuBase._eval_conjugate   s4   € Ø—)‘)‰ˆˆaØ�y‰y˜Ÿ™›¨¯©«°q·{±{³}ÓEÐEó    © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
unbranchedr   Ú__static_attributes__r   r   r   r	   r	   	   s   † ñð €JõFr   r	   c                   ó2   • \ rS rSrSrSS jr\S 5       rSrg)Úmathieusé   at  
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                 óZ   • US:X  a  U R                   u  p#n[        X#U5      $ [        X5      e©Né   )r   Úmathieusprimer   ©r   Úargindexr   r   r   s        r   ÚfdiffÚmathieus.fdiffF   ó.   € Ø�q‹=Ø—i‘i‰GˆA�!Ü   qÓ)Ð)ä$ TÓ4Ð4r   c                 ó¶   • UR                   (       a(  UR                  (       a  [        [        U5      U-  5      $ UR	                  5       (       a  U " XU* 5      * $ g r   )Ú	is_NumberÚis_zeror   r   Úcould_extract_minus_sign©Úclsr   r   r   s       r   ÚevalÚmathieus.evalM   sE   € à�;�;˜1Ÿ9Ÿ9Ü”t˜A“w˜q‘y“>Ð!à×%Ñ%×'Ñ'Ù˜˜q˜b“M�>Ð!ð (r   r   N©é   ©	r   r   r   r   r   r)   Úclassmethodr2   r   r   r   r   r!   r!      ó!   † ñ+ôZ5ð ñ"ó ó"r   r!   c                   ó2   • \ rS rSrSrSS jr\S 5       rSrg)ÚmathieucéV   ao  
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                 óZ   • US:X  a  U R                   u  p#n[        X#U5      $ [        X5      er$   )r   Úmathieucprimer   r'   s        r   r)   Úmathieuc.fdiff„   r+   r   c                 ó´   • UR                   (       a(  UR                  (       a  [        [        U5      U-  5      $ UR	                  5       (       a
  U " XU* 5      $ g r   )r-   r.   r   r   r/   r0   s       r   r2   Úmathieuc.eval‹   sC   € à�;�;˜1Ÿ9Ÿ9Ü”t˜A“w˜q‘y“>Ð!à×%Ñ%×'Ñ'Ù�q˜a˜R“=Ð ð (r   r   Nr4   r6   r   r   r   r:   r:   V   ó!   † ñ+ôZ5ð ñ!ó ó!r   r:   c                   ó2   • \ rS rSrSrSS jr\S 5       rSrg)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                 óŠ   • US:X  a3  U R                   u  p#nSU-  [        SU-  5      -  U-
  [        X#U5      -  $ [        X5      e©Nr%   é   )r   r   r!   r   r'   s        r   r)   Úmathieusprime.fdiffÂ   óH   € Ø�q‹=Ø—i‘i‰GˆA�!Ø�a‘Cœ˜A˜a™C›‘L 1Ñ$¤h¨q°QÓ&7Ñ7Ð7ä$ TÓ4Ð4r   c                 óÌ   • UR                   (       a4  UR                  (       a#  [        U5      [        [        U5      U-  5      -  $ UR	                  5       (       a
  U " XU* 5      $ g r   )r-   r.   r   r   r/   r0   s       r   r2   Úmathieusprime.evalÉ   sL   € à�;�;˜1Ÿ9Ÿ9Ü˜“7œ3œt A›w q™y›>Ñ)Ð)à×%Ñ%×'Ñ'Ù�q˜a˜R“=Ð ð (r   r   Nr4   r6   r   r   r   r&   r&   ”   rA   r   r&   c                   ó2   • \ rS rSrSrSS jr\S 5       rSrg)r=   éÒ   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                 óŠ   • US:X  a3  U R                   u  p#nSU-  [        SU-  5      -  U-
  [        X#U5      -  $ [        X5      erE   )r   r   r:   r   r'   s        r   r)   Úmathieucprime.fdiff   rH   r   c                 óÐ   • UR                   (       a5  UR                  (       a$  [        U5      * [        [        U5      U-  5      -  $ UR	                  5       (       a  U " XU* 5      * $ g r   )r-   r.   r   r   r/   r0   s       r   r2   Úmathieucprime.eval  sP   € à�;�;˜1Ÿ9Ÿ9Ü˜“G�8œC¤ Q£¨¡	›NÑ*Ð*à×%Ñ%×'Ñ'Ù˜˜q˜b“M�>Ð!ð (r   r   Nr4   r6   r   r   r   r=   r=   Ò   r8   r   r=   N)r   Úsympy.core.functionr   r   Ú(sympy.functions.elementary.miscellaneousr   Ú(sympy.functions.elementary.trigonometricr   r   r	   r!   r:   r&   r=   r   r   r   Ú<module>rT      sW   ðñ÷ DÝ 9ß =ôF�/ô Fô;"ˆ{ô ;"ô|;!ˆ{ô ;!ô|;!�Kô ;!ô|;"�Kõ ;"r   