+
    åûj0 ã                   ó@  € ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHtHt ^ RIHtHt ^ RIHtHtHt ^ R	IHt ^ R
IHtHtHt ^ RIHt ^ RIHtHt ^ RI H!t!H"t"H#t#H$t$ ^ RI%H&t& ^ RI'H(t(H)t) ^ RI*H+t+H,t,H-t- ^ RI.H/t/H0t0H1t1H2t2H3t3 ^ RI4H5t5H6t6H7t7 ^ RI8H9t9 ^ RI:H;t; ^ RI<H=t=H>t>  ! R R]4      t? ! R R]?4      t@ ! R R]?4      tA ! R R]?4      tB ! R R]?4      tC ! R  R!]?4      tD ! R" R#]?4      tER$ tF ! R% R&]?4      tGR' tHR( tI ! R) R*]G4      tJ ! R+ R,]G4      tK ! R- R.]G4      tL ! R/ R0]L4      tM ! R1 R2]L4      tNRER3 ltO ! R4 R5]4      tP ! R6 R7]P4      tQ ! R8 R9]P4      tR ! R: R;]P4      tS ! R< R=]P4      tT ! R> R?]4      tU ! R@ RA]4      tV ! RB RC]4      tWRD# )Fé    ©Úwraps)ÚS)ÚAdd)Úcacheit)ÚExpr)ÚDefinedFunctionÚArgumentIndexErrorÚ_mexpand)Úfuzzy_orÚ	fuzzy_not)ÚRationalÚpiÚI)ÚPow)ÚDummyÚuniquely_named_symbolÚWild)Úsympify)Ú	factorialÚRisingFactorial)ÚsinÚcosÚcscÚcot)Úceiling)ÚexpÚlog)ÚcbrtÚsqrtÚroot)ÚAbsÚreÚimÚ
polar_liftÚ
unpolarify)ÚgammaÚdigammaÚ
uppergamma)Úhyper)Úspherical_bessel_fn)ÚmpÚworkprecc                   óv   a € ] tR t^$t o Rt]R 4       t]R 4       t]R 4       t	RR lt
R tR tR tR	 tR
tV tR# )Ú
BesselBaseaÌ  
Abstract base class for Bessel-type functions.

This class is meant to reduce code duplication.
All Bessel-type functions can 1) be differentiated, with the derivatives
expressed in terms of similar functions, and 2) be rewritten in terms
of other Bessel-type functions.

Here, Bessel-type functions are assumed to have one complex parameter.

To use this base class, define class attributes ``_a`` and ``_b`` such that
``2*F_n' = -_a*F_{n+1} + b*F_{n-1}``.

c                ó(   € V P                   ^ ,          # )z'The order of the Bessel-type function. ©Úargs©Úselfs   &ÚZC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\sympy\functions\special\bessel.pyÚorderÚBesselBase.order4   ó   € ð �y‰y˜�|Ðó    c                ó(   € V P                   ^,          # )z*The argument of the Bessel-type function. r1   r3   s   &r5   ÚargumentÚBesselBase.argument9   r8   r9   c                ó   € R # ©N© ©ÚclsÚnuÚzs   &&&r5   ÚevalÚBesselBase.eval>   s   € ár9   c                óD  € V^8w  d   \        W4      hV P                  ^,          V P                  V P                  ^,
          V P                  4      ,          V P
                  ^,          V P                  V P                  ^,           V P                  4      ,          ,
          # ©é   )r
   Ú_bÚ	__class__r6   r;   Ú_a©r4   Úargindexs   &&r5   ÚfdiffÚBesselBase.fdiffB   sn   € Ø�qŒ=Ü$ TÓ4Ð4Ø—‘˜•	˜DŸN™N¨4¯:©:¸­>¸4¿=¹=ÓIÕIØ—‘˜•	˜DŸN™N¨4¯:©:¸­>¸4¿=¹=ÓIÕIõJð 	Kr9   c                ó®   € V P                   pVP                  R J d9   V P                  V P                  P	                  4       VP	                  4       4      # R# ©FN)r;   Úis_extended_negativerJ   r6   Ú	conjugate©r4   rC   s   & r5   Ú_eval_conjugateÚBesselBase._eval_conjugateH   sB   € Ø�M‰MˆØ×!Ñ! UÓ*Ø—>‘> $§*¡*×"6Ñ"6Ó"8¸!¿+¹+»-ÓHÐHñ +r9   c           	     óÜ  € V P                   V P                  rCVP                  V4      '       d   R # VP                  W4      '       g   R# VP	                  W4      pVP
                  '       dX   \        V \        \        \        \        \        \        34      '       g   VP                  '       g   \        VP                  4      # \        \!        VP                  VP                  .4      4      # rQ   )r6   r;   ÚhasÚ_eval_is_meromorphicÚsubsÚ
is_integerÚ
isinstanceÚbesseljÚbesseliÚhn1Úhn2ÚjnÚynÚis_zeror   Úis_infiniter   )r4   ÚxÚarB   rC   Úz0s   &&&   r5   rY   ÚBesselBase._eval_is_meromorphicM   s™   € Ø—
‘
˜DŸM™MˆAà�6‰6�!�9Š9ÙØ×%Ñ% a×+Ò+ÙØ�V‰V�A‹\ˆØ�=�=ˆ=Ü˜$¤¬'´3¼¼RÄÐ D×EÒEÈRÏZÏZÈZÜ  §¡Ó0Ð0Üœ 2§:¡:¨r¯~©~Ð">Ó?Ó@Ð@r9   c                ó  € V P                   V P                  V P                  rCpVP                  '       EdT   V^,
          P                  '       d’   V P
                  ) V P                  ,          V! V^,
          V4      P                  4       ,          ^V P
                  ,          V^,
          ,          V! V^,
          V4      P                  4       ,          V,          ,           # V^,           P                  '       d‘   ^V P                  ,          V^,           ,          V! V^,           V4      P                  4       ,          V,          V P
                  V P                  ,          V! V^,           V4      P                  4       ,          ,
          # V # ©é   )	r6   r;   rJ   Úis_realÚis_positiverK   rI   Ú_eval_expand_funcÚis_negative)r4   ÚhintsrB   rC   Úfs   &,   r5   rn   ÚBesselBase._eval_expand_funcZ   s  € Ø—:‘:˜tŸ}™}¨d¯n©nˆqˆØ�:�:‰:Ø�Q•×#×#Ð#ØŸ™˜ §¡Õ(©¨2°­6°1«×)GÑ)GÓ)IÕIØ˜$Ÿ'™'�	 2¨¥6Õ*©1¨R°!­V°Q«<×+IÑ+IÓ+KÕKÈAÕMõNð Oà�q•&×%×%Ð%Ø˜$Ÿ'™'�	 2¨¥6Õ*©1¨R°!­V°Q«<×+IÑ+IÓ+KÕKÈAÕMØŸ™ §¡�©¨"¨q­&°!«×(FÑ(FÓ(HÕHõIð Jàˆr9   c                ó   € ^ RI Hp V! V 4      # )r   )Ú
besselsimp)Úsympy.simplify.simplifyrt   )r4   Úkwargsrt   s   &, r5   Ú_eval_simplifyÚBesselBase._eval_simplifye   s   € Ý6Ù˜$ÓÐr9   r?   NrG   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úpropertyr6   r;   ÚclassmethodrD   rN   rU   rY   rn   rw   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r5   r/   r/   $   sg   ø‡ € ñð ñó ðð ñó ðð ñó ðôKòIò
Aò	÷ ð  r9   r/   c                   óž   a a€ ] tR t^jt oRt]P                  t]P                  t]	R 4       t
R tR tR tV 3R ltR tR
V 3R lltR	tVtV ;t# )r]   a€  
Bessel function of the first kind.

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

The Bessel $J$ function of order $\nu$ is defined to be the function
satisfying Bessel's differential equation

.. math ::
    z^2 \frac{\mathrm{d}^2 w}{\mathrm{d}z^2}
    + z \frac{\mathrm{d}w}{\mathrm{d}z} + (z^2 - \nu^2) w = 0,

with Laurent expansion

.. math ::
    J_\nu(z) = z^\nu \left(\frac{1}{\Gamma(\nu + 1) 2^\nu} + O(z^2) \right),

if $\nu$ is not a negative integer. If $\nu=-n \in \mathbb{Z}_{<0}$
*is* a negative integer, then the definition is

.. math ::
    J_{-n}(z) = (-1)^n J_n(z).

Examples
========

Create a Bessel function object:

>>> from sympy import besselj, jn
>>> from sympy.abc import z, n
>>> b = besselj(n, z)

Differentiate it:

>>> b.diff(z)
besselj(n - 1, z)/2 - besselj(n + 1, z)/2

Rewrite in terms of spherical Bessel functions:

>>> b.rewrite(jn)
sqrt(2)*sqrt(z)*jn(n - 1/2, z)/sqrt(pi)

Access the parameter and argument:

>>> b.order
n
>>> b.argument
z

See Also
========

bessely, besseli, besselk

References
==========

.. [1] Abramowitz, Milton; Stegun, Irene A., eds. (1965), "Chapter 9",
       Handbook of Mathematical Functions with Formulas, Graphs, and
       Mathematical Tables
.. [2] Luke, Y. L. (1969), The Special Functions and Their
       Approximations, Volume 1
.. [3] https://en.wikipedia.org/wiki/Bessel_function
.. [4] https://functions.wolfram.com/Bessel-TypeFunctions/BesselJ/

c                ó  € VP                   '       dÍ   VP                   '       d   \        P                  # VP                  '       d   VP                   R J g   \	        V4      P
                  '       d   \        P                  # \	        V4      P                  '       d!   VP                  RJ g   \        P                  # VP                  '       d   \        P                  # V\        P                  \        P                  39   d   \        P                  # VP                  4       '       d*   W!,          V) V) ,          ,          \        W) 4      ,          # VP                  '       d{   VP                  4       '       d+   \        P                  V) ,          \        V) V4      ,          # VP!                  \"        4      pV'       d   \"        V,          \%        W4      ,          # VP                  '       d   \'        V4      pW28w  d   \        W4      # MXVP)                  4       w  r4V^ 8w  d@   \+        ^V,          \,        ,          V,          \"        ,          4      \        W4      ,          # \'        V4      pW8w  d   \        WR4      # R# )FTN)rc   r   ÚOner[   r#   rm   ÚZeroro   ÚComplexInfinityÚis_imaginaryÚNaNÚInfinityÚNegativeInfinityÚcould_extract_minus_signr]   ÚNegativeOneÚextract_multiplicativelyr   r^   r&   Úextract_branch_factorr   r   ©rA   rB   rC   ÚnewzÚnÚnnus   &&&   r5   rD   Úbesselj.eval²   s²  € à�9�9ˆ9Ø�z�zˆzÜ—u‘u�Ø—-—-�- B§J¡J°%Ó$7¼B¸r»F×<N×<NÐ<NÜ—v‘v�Ü�B“×#×#Ð#¨R¯]©]¸dÓ-BÜ×(Ñ(Ð(Ø——�Ü—u‘u�Ø”—‘œQ×/Ñ/Ð0Ô0Ü—6‘6ˆMà×%Ñ%×'Ò'Ø•7˜Q˜B 2 #�;Õ&¤w¨r°2£Õ6Ð6Ø�=�=ˆ=Ø×*Ñ*×,Ò,Ü—}‘}¨ sÕ+¬G°R°C¸«OÕ;Ð;Ø×-Ñ-¬aÓ0ˆDßÜ˜2•wœw rÓ0Õ0Ð0ð �=�=ˆ=Ü˜a“=ˆDØŒyÜ˜rÓ(Ð(ð ð ×-Ñ-Ó/‰GˆDØ�AŒvÜ˜1˜Q�3œr�6 "�9¤Q�;Ó'¬°Ó(9Õ9Ð9Ü˜‹nˆØŒ9Ü˜3“?Ð"ñ r9   c                óž   € \        \        \        ,          V,          ^,          4      \        V\	        \        ) 4      V,          4      ,          # rG   )r   r   r   r^   r%   ©r4   rB   rC   rv   s   &&&,r5   Ú_eval_rewrite_as_besseliÚ besselj._eval_rewrite_as_besseliÖ   s/   € Ü”1”R•4˜•7˜1•9‹~œg b¬*´a°R«.¸Õ*:Ó;Õ;Ð;r9   c                óÌ   € VP                   R J dT   \        \        V,          4      \        V) V4      ,          \	        \        V,          4      \        W4      ,          ,
          # R# rQ   )r[   r   r   Úbesselyr   r—   s   &&&,r5   Ú_eval_rewrite_as_besselyÚ besselj._eval_rewrite_as_besselyÙ   sD   € Ø�=‰=˜EÓ!Ü”r˜"•u“:œg r c¨1›oÕ-´´B°rµE³
¼7À2»>Õ0IÕIÐIñ "r9   c                óœ   € \        ^V,          \        ,          4      \        V\        P                  ,
          V P
                  4      ,          # rG   )r    r   ra   r   ÚHalfr;   r—   s   &&&,r5   Ú_eval_rewrite_as_jnÚbesselj._eval_rewrite_as_jnÝ   s,   € Ü�A�a•Cœ•F‹|œB˜r¤A§F¡F�{¨D¯M©MÓ:Õ:Ð:r9   c                ór  <€ V P                   w  rE VP                  V4      pTP                  T4      w  rxTP                  '       d.   Yd,          ^T,          \        T^,           4      ,          ,          # TP                  '       dŒ   T^ 8X  d   ^MTpYsT,          ,          p	T	P                  '       g^   \        ^4      \        T\        ^T,          ^,           ,          ^,          ,
          4      ,          \        \        T,          4      ,          # T # \        \        T `3  YTR7      #   \         d    T u # i ; i©rH   ©ÚlogxÚcdir)r2   Úas_leading_termÚNotImplementedErrorÚas_coeff_exponentrm   r'   ro   r    r   r   Úsuperr]   Ú_eval_as_leading_term©r4   re   r¥   r¦   rB   rC   ÚargÚcÚeÚsignrJ   s   &&&&      €r5   r«   Úbesselj._eval_as_leading_termà   sõ   ø€ Ø—	‘	‰ˆð	Ø×#Ñ# AÓ&ˆCð ×$Ñ$ QÓ'‰ˆà�=�=ˆ=Ø•7˜A˜r�E¤%¨¨Q­£-Õ/Õ0Ð0Ø�]�]ˆ]Ø œ	‘1 tˆDØ˜1•W•9ˆDØ×#×#Ð#ô ˜A“wœs 1¤r¨1¨R­4°!­8¥}°Q¥Õ#6Ó7Õ7¼¼RÀ½T»
ÕBÐBØˆKä”W˜dÑ9¸!ÈTÐ9ÓRÐRøô #ô 	ØŠKð	ús   ‘D& Ä&D6Ä5D6c                ór   € V P                   w  rVP                  '       d   VP                  '       d   R # R# R# ©TN©r2   r[   Úis_extended_real©r4   rB   rC   s   &  r5   Ú_eval_is_extended_realÚbesselj._eval_is_extended_realõ   ó+   € Ø—	‘	‰ˆØ�=�=ˆ=˜Q×/×/Ð/Ùñ 0‰=r9   c                ó   <€ ^ RI Hp V P                  w  rg VP                  V4      w  r‰T	P                  '       Ed'   \        Y),          4      p
T! Y,          T4      pT^,          P                  YY44      P                  4       pT\        P                  J d   T# \        T^,          4      T,           P                  4       pYÆ,          \        T^,           4      ,          pT.p\        ^T
^,           ^,          4       FR  pYí) TTT,           ,          ,          ,          p\        T4      T,           P                  4       pTP                  T4       KT  	  \!        T!  T,           # \"        \$        T `#  YY44      #   \        \
        3 d    T u # i ; i©r   ©ÚOrder)Úsympy.series.orderr½   r2   ÚleadtermÚ
ValueErrorr¨   rm   r   Ú_eval_nseriesÚremoveOr   r‡   r   r'   ÚrangeÚappendr   rª   r]   ©r4   re   r“   r¥   r¦   r½   rB   rC   Ú_r   ÚnewnÚoÚrÚtÚtermÚsÚkrJ   s   &&&&&            €r5   rÁ   Úbesselj._eval_nseriesú   s@  ø€ õ 	-Ø—	‘	‰ˆð	Ø—Z‘Z “]‰FˆAð �?�?‰?Ü˜1�5“>ˆDÙ�a•d˜A“ˆAØ�1•×#Ñ# A¨$Ó5×=Ñ=Ó?ˆAØ”A—F‘F‹{Ø�Ü˜!˜Q�$“ !Õ#×,Ñ,Ó.ˆAà•5œ˜r A�v›Õ&ˆDØ�ˆAÜ˜1˜t a�x¨!�mÖ,�Ø˜˜A˜r A�v�J�Õ'�Ü  ›¨Õ*×3Ñ3Ó5�Ø—‘˜–ñ -ô ˜‘7˜Q•;Ðä”W˜dÑ1°!¸ÓCÐCøô' Ô/Ð0ô 	ØŠKð	ús   —E7 Å7FÆFr?   ©r   )ry   rz   r{   r|   r}   r   r†   rK   rI   r   rD   r˜   rœ   r    r«   r·   rÁ   r€   r�   Ú__classcell__©rJ   rƒ   s   @@r5   r]   r]   j   sZ   ù‡ € ñBðH 
�‰€BØ	
�‰€Bàñ!#ó ð!#òF<òJò;õSò*÷
D÷ Dr9   r]   c                   óž   a a€ ] tR tRt oRt]P                  t]P                  t]	R 4       t
R tR tR tV 3R ltR tRV 3R	 lltR
tVtV ;t# )r›   i  aø  
Bessel function of the second kind.

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

The Bessel $Y$ function of order $\nu$ is defined as

.. math ::
    Y_\nu(z) = \lim_{\mu \to \nu} \frac{J_\mu(z) \cos(\pi \mu)
                                        - J_{-\mu}(z)}{\sin(\pi \mu)},

where $J_\mu(z)$ is the Bessel function of the first kind.

It is a solution to Bessel's equation, and linearly independent from
$J_\nu$.

Examples
========

>>> from sympy import bessely, yn
>>> from sympy.abc import z, n
>>> b = bessely(n, z)
>>> b.diff(z)
bessely(n - 1, z)/2 - bessely(n + 1, z)/2
>>> b.rewrite(yn)
sqrt(2)*sqrt(z)*yn(n - 1/2, z)/sqrt(pi)

See Also
========

besselj, besseli, besselk

References
==========

.. [1] https://functions.wolfram.com/Bessel-TypeFunctions/BesselY/

c                óº  € VP                   '       dw   VP                   '       d   \        P                  # \        V4      P                   R J d   \        P                  # \        V4      P                   '       d   \        P
                  # V\        P                  \        P                  39   d   \        P                  # V\        \        P                  ,          8X  dE   \        \        \        ,          V^,           ,          ^,          4      \        P                  ,          # V\        \        P                  ,          8X  dF   \        \        ) \        ,          V^,           ,          ^,          4      \        P                  ,          # VP                  '       dC   VP                  4       '       d+   \        P                  V) ,          \        V) V4      ,          # R# R# rQ   )rc   r   rŒ   r#   rˆ   rŠ   r‹   r‡   r   r   r   r[   r�   rŽ   r›   r@   s   &&&r5   rD   Úbessely.evalF  s   € à�9�9ˆ9Ø�z�zˆzÜ×)Ñ)Ð)Ü�B“—‘ 5Ó(Ü×(Ñ(Ð(Ü�B“——�Ü—u‘u�Ø”—‘œQ×/Ñ/Ð0Ô0Ü—6‘6ˆMØ””!—*‘*•ÔÜ”qœ•t˜R !�V•} Q•Ó'¬!¯*©*Õ4Ð4Ø””!×$Ñ$Õ$Ô$Üœ�rœ"•u˜b 1�f•~ aÕ'Ó(¬1¯:©:Õ5Ð5à�=�=ˆ=Ø×*Ñ*×,Ò,Ü—}‘}¨ sÕ+¬G°R°C¸«OÕ;Ð;ñ -ñ r9   c                óÌ   € VP                   R J dT   \        \        V,          4      \        \        V,          4      \	        W4      ,          \	        V) V4      ,
          ,          # R# rQ   )r[   r   r   r   r]   r—   s   &&&,r5   Ú_eval_rewrite_as_besseljÚ bessely._eval_rewrite_as_besseljZ  sD   € Ø�=‰=˜EÓ!Ü”r˜"•u“:œs¤2 b¥5›z¬'°"«.Õ8¼7ÀBÀ3È»?ÕJÕKÐKñ "r9   c                ót   € V P                   ! V P                  !  pV'       d   VP                  \        4      # R # r>   )rÖ   r2   Úrewriter^   ©r4   rB   rC   rv   Úajs   &&&, r5   r˜   Ú bessely._eval_rewrite_as_besseli^  ó-   € Ø×*Ò*¨D¯I©IÑ6ˆßØ—:‘:œgÓ&Ð&ñ r9   c                óœ   € \        ^V,          \        ,          4      \        V\        P                  ,
          V P
                  4      ,          # rG   )r    r   rb   r   rŸ   r;   r—   s   &&&,r5   Ú_eval_rewrite_as_ynÚbessely._eval_rewrite_as_ync  s,   € Ü�A�a•Cœ•F‹|œb ¤a§f¡f¥¨d¯m©mÓ<Õ<Ð<r9   c                óâ  <€ V P                   w  rE VP                  V4      pTP                  T4      w  rxTP                  '       Ed    ^\
        ,          \        T^,          4      ,          \        YE4      ,          p	TP                  '       d5   T^,          T) ,          ) \        T^,
          4      ,          \
        ,          M\        P                  p
T^,          T,          ) \
        \        T4      ,          ,          \        T^,           4      \        P                  ,
          ,          p\        YšT.!  P                  YR7      pT# TP                  '       dñ   T^ 8X  d   ^MTpYsT,          ,          pTP                  '       gÃ   \        ^4      \!        \
        T,          ^,          T,
          \
        ^,          ,           4      ) ^\#        \
        T,          ^,          T,
          \
        ^,          ,           4      ,          ^T,          ,          ,           ,          \        ^T,          4      ,          \        \
        4      ,          # T # \$        \&        T `S  YTR7      #   \         d    T u # i ; i)rH   ©r¥   r¤   )r2   r§   r¨   r©   rm   r   r   r]   r   r   r‡   r(   Ú
EulerGammar   ro   r    r   r   rª   r›   r«   )r4   re   r¥   r¦   rB   rC   r­   r®   r¯   Úterm_oneÚterm_twoÚ
term_threer°   rJ   s   &&&&         €r5   r«   Úbessely._eval_as_leading_termf  sÇ  ø€ Ø—	‘	‰ˆð	Ø×#Ñ# AÓ&ˆCð ×$Ñ$ QÓ'‰ˆà�=�=‰=Øœ2�œs 1 Q¥3›x�¬°«Õ6ˆHØ>@×=M×=MÐ=M˜˜1�  ��}¤Y¨r°A­vÓ%6Õ6´rÖ9ÔST×SYÑSYˆHØ˜Q�3 �)˜¤R¬	°"«Õ%5Õ6¼ÀÀQÅ»Ì!Ï,É,Õ8VÕWˆJÜ˜¨JÐ7Ñ8×HÑHÈÐHÓVˆCØˆJØ�]�]ˆ]Ø œ	‘1 tˆDØ˜1•W•9ˆDØ×#×#Ð#ô ˜A“w¤¤R¨¥U¨1¥W¨q¥[´2°aµ4Õ%7Ó!8Ð 8¸1¼SÄÀBÅÀqÅÈ1ÅÌrÐRSÍtÕASÓ=TÕ;TÐVWÐXYÕVYÕ;ZÕ ZÕ[Ô\`ÐabÐcdÕadÓ\eÕeÔfjÔkmÓfnÕnÐnØˆKä”W˜dÑ9¸!ÈTÐ9ÓRÐRøô' #ô 	ØŠKð	ús   ‘I ÉI.É-I.c                ór   € V P                   w  rVP                  '       d   VP                  '       d   R # R# R# r³   ©r2   r[   rm   r¶   s   &  r5   r·   Úbessely._eval_is_extended_real  ó(   € Ø—	‘	‰ˆØ�=�=ˆ=˜QŸ]Ÿ]˜]Ùñ +‰=r9   c                óž  <€ ^ RI Hp V P                  w  rg VP                  V4      w  r‰T	P                  '       Edæ   TP                  '       EdÓ   \        Y),          4      p
\        Yg4      p^\        ,          \        T^,          4      ,          T,          P                  YY44      p. . ríT! Y,          T4      pT^,          P                  YY44      P                  4       pT\        P                  J d   T# \!        T^,          4      T,           P                  4       pT\        P                  8”  dÈ   TT) ,          \#        T^,
          4      ,          \        ,          pTP%                  T4       \'        ^T4       Fz  pTT,
          T,          pT\        P                  8X  d   TTT,          ,          pMTTT,          ,          p\!        T4      T,           P                  4       pTP%                  T4       K|  	  TT,          \        \#        T4      ,          ,          pT\)        T^,           4      \        P*                  ,
          ,          pTP%                  T4       \'        ^T
^,           ^,          4       FŠ  pTT) TTT,           ,          ,          ,          p\!        T4      T,           P                  4       pT\)        TT,           ^,           4      \)        T^,           4      ,           ,          pTP%                  T4       KŒ  	  T\-        T!  ,
          \-        T!  ,
          # \.        \0        T `3  YY44      #   \        \
        3 d    T u # i ; ir»   )r¾   r½   r2   r¿   rÀ   r¨   rm   r[   r   r]   r   r   rÁ   rÂ   r   r‡   r   r   rÄ   rÃ   r(   rã   r   rª   r›   )r4   re   r“   r¥   r¦   r½   rB   rC   rÆ   r   rÇ   Úbnrf   Úbr®   rÈ   rÉ   rÊ   rË   rÍ   ÚdenomÚprJ   s   &&&&&                 €r5   rÁ   Úbessely._eval_nseries„  sj  ø€ õ 	-Ø—	‘	‰ˆð	Ø—Z‘Z “]‰FˆAð �?�?‰?˜rŸ}Ÿ}™}Ü˜1�5“>ˆDÜ˜“ˆBØ”B•$œ˜A˜a�C›• Õ#×2Ñ2°1¸ÓDˆAà�rˆqÙ�a•d˜A“ˆAØ�1•×#Ñ# A¨$Ó5×=Ñ=Ó?ˆAØ”A—F‘F‹{Ø�Ü˜!˜Q�$“ !Õ#×,Ñ,Ó.ˆAà”A—F‘FŒ{Ø˜B˜3•x¤	¨"¨q­&Ó 1Õ1´"Õ4�Ø—‘˜”Ü˜q "ž�AØ !�V Q�J�EØ¤§¡”Ø  !¥�™à  %¥�˜Ü$ T›N¨QÕ.×7Ñ7Ó9�DØ—H‘H˜T–Nñ &ð �2•”rœ) B›-Õ'Õ(ˆAØ”g˜b 1�f“o¬¯©Õ4Õ5ˆDØ�H‰H�TŒNÜ˜1˜t a�x¨!�mÖ,�Ø�a�R˜˜A �F�•_Õ$�Ü˜a“[ 1•_×-Ñ-Ó/�Øœ' ! b¥&¨1¥*Ó-´¸¸A½³Õ>Õ?�Ø—‘˜–ñ	 -ð
 ”s˜A‘w•;¤ a¡Õ(Ð(ä”W˜dÑ1°!¸ÓCÐCøôK Ô/Ð0ô 	ØŠKð	ús   —L6 Ì6MÍMr?   rÏ   )ry   rz   r{   r|   r}   r   r†   rK   rI   r   rD   rÖ   r˜   rß   r«   r·   rÁ   r€   r�   rÐ   rÑ   s   @@r5   r›   r›     sX   ù‡ € ñ&ðP 
�‰€BØ	
�‰€Bàñ<ó ð<ò&Lò'ò
=õSò2÷
/D÷ /Dr9   r›   c                   ó¶   a a€ ] tR tRt oRt]P                  ) t]P                  t]	R 4       t
RR ltR tR tR tR tV 3R	 ltRV 3R
 lltV 3R ltRtVtV ;t# )r^   i¶  a§  
Modified Bessel function of the first kind.

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

The Bessel $I$ function is a solution to the modified Bessel equation

.. math ::
    z^2 \frac{\mathrm{d}^2 w}{\mathrm{d}z^2}
    + z \frac{\mathrm{d}w}{\mathrm{d}z} + (z^2 + \nu^2)^2 w = 0.

It can be defined as

.. math ::
    I_\nu(z) = i^{-\nu} J_\nu(iz),

where $J_\nu(z)$ is the Bessel function of the first kind.

Examples
========

>>> from sympy import besseli
>>> from sympy.abc import z, n
>>> besseli(n, z).diff(z)
besseli(n - 1, z)/2 + besseli(n + 1, z)/2

See Also
========

besselj, bessely, besselk

References
==========

.. [1] https://functions.wolfram.com/Bessel-TypeFunctions/BesselI/

c                ó�  € VP                   '       dÍ   VP                   '       d   \        P                  # VP                  '       d   VP                   R J g   \	        V4      P
                  '       d   \        P                  # \	        V4      P                  '       d!   VP                  RJ g   \        P                  # VP                  '       d   \        P                  # \        V4      \        P                  \        P                  39   d   \        P                  # V\        P                  J d   \        P                  # V\        P                  J d   RV,          \        P                  ,          # VP                  4       '       d*   W!,          V) V) ,          ,          \        W) 4      ,          # VP                  '       d`   VP                  4       '       d   \        V) V4      # VP!                  \"        4      pV'       d    \"        V) ,          \%        W) 4      ,          # VP                  '       d   \'        V4      pW28w  d   \        W4      # MXVP)                  4       w  r4V^ 8w  d@   \+        ^V,          \,        ,          V,          \"        ,          4      \        W4      ,          # \'        V4      pW8w  d   \        WR4      # R# )FTNéÿÿÿÿ)rc   r   r†   r[   r#   rm   r‡   ro   rˆ   r‰   rŠ   r$   r‹   rŒ   r�   r^   r�   r   r]   r&   r�   r   r   r‘   s   &&&   r5   rD   Úbesseli.evalá  sà  € à�9�9ˆ9Ø�z�zˆzÜ—u‘u�Ø—-—-�- B§J¡J°%Ó$7¼B¸r»F×<N×<NÐ<NÜ—v‘v�Ü�B“×#×#Ð#¨R¯]©]¸dÓ-BÜ×(Ñ(Ð(Ø——�Ü—u‘u�Üˆa‹5”Q—Z‘Z¤×!3Ñ!3Ð4Ô4Ü—6‘6ˆMØ”—
‘
‹?Ü—:‘:ÐØ”×"Ñ"Ó"Ø˜•8œAŸJ™JÕ&Ð&à×%Ñ%×'Ò'Ø•7˜Q˜B 2 #�;Õ&¤w¨r°2£Õ6Ð6Ø�=�=ˆ=Ø×*Ñ*×,Ò,Ü ˜s A“Ð&Ø×-Ñ-¬aÓ0ˆDßÜ˜B˜3•x¤¨¨EÓ 2Õ2Ð2ð �=�=ˆ=Ü˜a“=ˆDØŒyÜ˜rÓ(Ð(ð ð ×-Ñ-Ó/‰GˆDØ�AŒvÜ˜1˜Q�3œr�6 "�9¤Q�;Ó'¬°Ó(9Õ9Ð9Ü˜‹nˆØŒ9Ü˜3“?Ð"ñ r9   c                ó`   € VP                   '       d   \        V4      \        W4      ,          # R # r>   )rµ   r   Ú_besseli©r4   rB   rC   Úlimitvarrv   s   &&&&,r5   Ú_eval_rewrite_as_tractableÚ"besseli._eval_rewrite_as_tractable	  s&   € Ø××ÐÜ�q“6œ( 2›/Õ)Ð)ñ r9   c                óž   € \        \        ) \        ,          V,          ^,          4      \        V\	        \        4      V,          4      ,          # rG   )r   r   r   r]   r%   r—   s   &&&,r5   rÖ   Ú besseli._eval_rewrite_as_besselj  s.   € Ü”A�2”b•5˜•8˜A•:‹œw r¬:´a«=¸­?Ó;Õ;Ð;r9   c                ót   € V P                   ! V P                  !  pV'       d   VP                  \        4      # R # r>   ©rÖ   r2   rÙ   r›   rÚ   s   &&&, r5   rœ   Ú besseli._eval_rewrite_as_bessely  rÝ   r9   c                ó\   € V P                   ! V P                  !  P                  \        4      # r>   )rÖ   r2   rÙ   ra   r—   s   &&&,r5   r    Úbesseli._eval_rewrite_as_jn  s"   € Ø×,Ò,¨d¯i©iÑ8×@Ñ@ÄÓDÐDr9   c                ór   € V P                   w  rVP                  '       d   VP                  '       d   R # R# R# r³   r´   r¶   s   &  r5   r·   Úbesseli._eval_is_extended_real  r¹   r9   c                ó  <€ V P                   w  rE VP                  V4      pTP                  T4      w  rxTP                  '       d.   Yd,          ^T,          \        T^,           4      ,          ,          # TP                  '       d\   T^ 8X  d   ^MTpYsT,          ,          p	T	P                  '       g.   \        T4      \        ^\        ,          T,          4      ,          # T # \        \        T `3  YTR7      #   \         d    T u # i ; ir£   )r2   r§   r¨   r©   rm   r'   ro   r   r    r   rª   r^   r«   r¬   s   &&&&      €r5   r«   Úbesseli._eval_as_leading_term  sÚ   ø€ Ø—	‘	‰ˆð	Ø×#Ñ# AÓ&ˆCð ×$Ñ$ QÓ'‰ˆà�=�=ˆ=Ø•7˜A˜r�E¤%¨¨Q­£-Õ/Õ0Ð0Ø�]�]ˆ]Ø œ	‘1 tˆDØ˜1•W•9ˆDØ×#×#Ð#ô ˜1“vœd 1¤R¥4¨¥6›lÕ*Ð*ØˆKä”W˜dÑ9¸!ÈTÐ9ÓRÐRøô #ô 	ØŠKð	ús   ‘C6 Ã6DÄDc                ó  <€ ^ RI Hp V P                  w  rg VP                  V4      w  r‰T	P                  '       Ed&   \        Y),          4      p
T! Y,          T4      pT^,          P                  YY44      P                  4       pT\        P                  J d   T# \        T^,          4      T,           P                  4       pYÆ,          \        T^,           4      ,          pT.p\        ^T
^,           ^,          4       FQ  pYíTTT,           ,          ,          ,          p\        T4      T,           P                  4       pTP                  T4       KS  	  \!        T!  T,           # \"        \$        T `#  YY44      #   \        \
        3 d    T u # i ; ir»   )r¾   r½   r2   r¿   rÀ   r¨   rm   r   rÁ   rÂ   r   r‡   r   r'   rÃ   rÄ   r   rª   r^   rÅ   s   &&&&&            €r5   rÁ   Úbesseli._eval_nseries2  s>  ø€ õ 	-Ø—	‘	‰ˆð	Ø—Z‘Z “]‰FˆAð �?�?‰?Ü˜1�5“>ˆDÙ�a•d˜A“ˆAØ�1•×#Ñ# A¨$Ó5×=Ñ=Ó?ˆAØ”A—F‘F‹{Ø�Ü˜!˜Q�$“ !Õ#×,Ñ,Ó.ˆAà•5œ˜r A�v›Õ&ˆDØ�ˆAÜ˜1˜t a�x¨!�mÖ,�Ø˜1˜b 1�f�:�Õ&�Ü  ›¨Õ*×3Ñ3Ó5�Ø—‘˜–ñ -ô ˜‘7˜Q•;Ðä”W˜dÑ1°!¸ÓCÐCøô' Ô/Ð0ô 	ØŠKð	ús   —E6 Å6FÆFc           
     óÚ  <€ ^ RI Hp ^ RIHp V^,          pV\        P
                  \        P                  39   Ed   V P                  w  r‰\        V4       U
u. uFŽ  p
V! \        ^V,          ^,
          ^4      V
4      V! \        ^V,          ^,           ^4      V
4      ,          ^V
,          V	\        ^V
,          ^,           ^4      ,          ,          \        V
4      ,          ,          NK�  	  up
V! ^V	\        ^V,          ^,           ^4      ,          ,          V4      .,           p\        V	4      \        ^\        ,          4      ,          \        V!  ,          # \        SV `A  WW44      # u up
i ©r   ©r   r¼   ©Ú(sympy.functions.combinatorial.factorialsr   r¾   r½   r   r‹   rŒ   r2   rÃ   r   r   r   r    r   r   rª   Ú_eval_aseries©r4   r“   Úargs0re   r¥   r   r½   ÚpointrB   rC   rÍ   rÌ   rJ   s   &&&&&       €r5   r  Úbesseli._eval_aseriesQ  s0  ø€ ÝLÝ,Ø�a•ˆà”Q—Z‘Z¤×!3Ñ!3Ð4Õ4Ø—I‘I‰EˆBäGLÈQÄxóQÙGOÀ!ñ "¤(¨1¨R­4°!­8°QÓ"7¸Ó;¹OÌHÐUVÐWYÕUYÐ\]ÕU]Ð_`ÓLaÐcdÓ<eÕeØ�1�X�aœ( 1 Q¥3¨¥7¨AÓ.Õ/Õ/´	¸!³Õ<÷>ð >ÙGOñQÙTYÐZ[Ð\]Ô`hÐijÐklÕilÐopÕipÐrsÓ`tÕ\uÕZuÐwxÓTyÐSzõ{ˆAä�q“6œ$˜q¤�t›*Õ$¬¨Q©Õ0Ð0ä‰wÑ$ Q¨qÓ7Ð7ùò	Qs   ÁBE(r?   r>   rÏ   )ry   rz   r{   r|   r}   r   r†   rK   rI   r   rD   rú   rÖ   rœ   r    r·   r«   rÁ   r  r€   r�   rÐ   rÑ   s   @@r5   r^   r^   ¶  sd   ù‡ € ñ%ðN �%‰%ˆ€BØ	
�‰€Bàñ%#ó ð%#ôN*ò<ò'ò
Eòõ
S÷*D÷>8õ 8r9   r^   c                   ó¶   a a€ ] tR tRt oRt]P                  t]P                  ) t]	R 4       t
R tR tR tR tR tRR	 ltR
 tRV 3R lltV 3R ltRtVtV ;t# )Úbesselki_  a´  
Modified Bessel function of the second kind.

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

The Bessel $K$ function of order $\nu$ is defined as

.. math ::
    K_\nu(z) = \lim_{\mu \to \nu} \frac{\pi}{2}
               \frac{I_{-\mu}(z) -I_\mu(z)}{\sin(\pi \mu)},

where $I_\mu(z)$ is the modified Bessel function of the first kind.

It is a solution of the modified Bessel equation, and linearly independent
from $Y_\nu$.

Examples
========

>>> from sympy import besselk
>>> from sympy.abc import z, n
>>> besselk(n, z).diff(z)
-besselk(n - 1, z)/2 - besselk(n + 1, z)/2

See Also
========

besselj, besseli, bessely

References
==========

.. [1] https://functions.wolfram.com/Bessel-TypeFunctions/BesselK/

c                ó8  € VP                   '       dw   VP                   '       d   \        P                  # \        V4      P                   R J d   \        P                  # \        V4      P                   '       d   \        P
                  # V\        P                  \        \        P                  ,          \        \        P                  ,          39   d   \        P                  # VP                  '       d&   VP                  4       '       d   \        V) V4      # R# R# rQ   )rc   r   r‹   r#   rˆ   rŠ   r   rŒ   r‡   r[   r�   r  r@   s   &&&r5   rD   Úbesselk.evalˆ  s¯   € à�9�9ˆ9Ø�z�zˆzÜ—z‘zÐ!Ü�B“—‘ 5Ó(Ü×(Ñ(Ð(Ü�B“——�Ü—u‘u�Ø”—‘œQœqŸz™z�\¬1¬Q×-?Ñ-?Õ+?Ð@Ô@Ü—6‘6ˆMà�=�=ˆ=Ø×*Ñ*×,Ò,Ü ˜s A“Ð&ñ -ñ r9   c                óº   € VP                   R J dK   \        \        \        V,          4      ,          \        V) V4      \        W4      ,
          ,          ^,          # R# rQ   )r[   r   r   r^   r—   s   &&&,r5   r˜   Ú besselk._eval_rewrite_as_besseli˜  s@   € Ø�=‰=˜EÓ!Ü”cœ"˜R�%“j•=¤'¨2¨#¨q£/´G¸B³NÕ"BÕCÀAÕEÐEñ "r9   c                ót   € V P                   ! V P                  !  pV'       d   VP                  \        4      # R # r>   )r˜   r2   rÙ   r]   )r4   rB   rC   rv   Úais   &&&, r5   rÖ   Ú besselk._eval_rewrite_as_besseljœ  rÝ   r9   c                ót   € V P                   ! V P                  !  pV'       d   VP                  \        4      # R # r>   rÿ   rÚ   s   &&&, r5   rœ   Ú besselk._eval_rewrite_as_bessely¡  rÝ   r9   c                ót   € V P                   ! V P                  !  pV'       d   VP                  \        4      # R # r>   )rœ   r2   rÙ   rb   )r4   rB   rC   rv   Úays   &&&, r5   rß   Úbesselk._eval_rewrite_as_yn¦  s,   € Ø×*Ò*¨D¯I©IÑ6ˆßØ—:‘:œb“>Ð!ñ r9   c                ór   € V P                   w  rVP                  '       d   VP                  '       d   R # R# R# r³   ré   r¶   s   &  r5   r·   Úbesselk._eval_is_extended_real«  rë   r9   c                ób   € VP                   '       d   \        V) 4      \        W4      ,          # R # r>   )rµ   r   Ú_besselkrø   s   &&&&,r5   rú   Ú"besselk._eval_rewrite_as_tractable°  s(   € Ø××ÐÜ˜�r“7œ8 B›?Õ*Ð*ñ r9   c                óÊ  € V P                   w  rE VP                  V4      pTP                  T4      w  rxTP                  '       d³   TP
                  '       d3   \        T4      ) \        P                  ,
          \        ^4      ,           p	M\TP                  '       d<   \        \        T4      4      T^,          \        T4      ) ,          ,          ^,          p	M\        RT R24      hT	P                  YR7      # TP                  '       d8   \        \        4      \        T) 4      ,          \        ^T,          4      ,          # T P!                  YF4      #   \         d    T u # i ; i)rH   z"Cannot proceed without knowing if z is zero or not.râ   )r2   r§   r¨   r©   rm   rc   r   r   rã   Ú
is_nonzeror'   r"   ro   r    r   r   Úfunc)
r4   re   r¥   r¦   rB   rC   r­   rÆ   r¯   rË   s
   &&&&      r5   r«   Úbesselk._eval_as_leading_term´  s  € Ø—	‘	‰ˆð	Ø×#Ñ# AÓ&ˆCð ×$Ñ$ QÓ'‰ˆà�=�=ˆ=Ø�z�zˆzä˜A›�w¤§¡Õ-´°A³Õ6‘Ø——�äœS ›W“~ q¨¥s¬s°2«w¨hÕ&7Õ7¸Õ9‘ä)Ð,NÈrÈdÐRbÐ*cÓdÐdà×'Ñ'¨Ð'Ó5Ð5Ø�]�]ˆ]äœ“8œC  ›IÕ%¤d¨1¨S­5£kÕ1Ð1à—9‘9˜RÓ%Ð%øô' #ô 	ØŠKð	ús   �E ÅE"Å!E"c                ó–	  <€ ^ RI Hp V P                  w  rg VP                  V4      w  r‰T	P                  '       Edb   T^,          P                  YY44      P                  4       p
T
\        P                  J d   T! Yv) ,          Yv,          ,           T4      # T! Y,          T4      pTP                  '       EdX   \        Y),          4      p\        Yg4      pRT^,
          ,          \        T^,          4      ,          T,          P                  YY44      p. . pp\        T
^,          4      pT\        P                  8”  d›   Y¦) ,          \!        T^,
          4      ,          ^,          pTP#                  T4       \%        ^T4       FR  pTTTT,
          T,          ,          ,          p\        T4      T,           P                  4       pTP#                  T4       KT  	  Y¦,          RT,          ,          ^\!        T4      ,          ,          pT\'        T^,           4      \        P(                  ,
          ,          pTP#                  T4       \%        ^T^,           ^,          4       F‰  pTTTTT,           ,          ,          ,          p\        T4      T,           P                  4       pT\'        TT,           ^,           4      \'        T^,           4      ,           ,          pTP#                  T4       K‹  	  T\+        T!  ,           \+        T!  ,           T,           # TP,                  '       Eds   \        Y&,           T	,          4      p\        Y&,
          T	,          4      p. . rþ\%        T^,           ^,          4       Fs  p\/        T4      T
^T,          T,
          ,          ,          ^\1        ^T,
          T4      ,          \!        T4      ,          ,          pTP#                  \        T4      4       Ku  	  \%        T^,           ^,          4       Ft  p\/        T) 4      T
^T,          T,           ,          ,          ^\1        T^,           T4      ,          \!        T4      ,          ,          pTP#                  \        T4      4       Kv  	  \+        T!  \+        T!  ,           T,           # \        R4      h\2        \4        T `  YY44      #   \        \
        3 d    T u # i ; i)r   r¼   z4besselk expansion is only implemented for real orderrô   )r¾   r½   r2   r¿   rÀ   r¨   rm   rÁ   rÂ   r   r‡   r[   r   r^   r   r   r   rÄ   rÃ   r(   rã   r   Úis_nonintegerr'   r   rª   r  )r4   re   r“   r¥   r¦   r½   rB   rC   rÆ   r   rÉ   rÈ   rÇ   rí   rf   rî   r®   rÊ   rË   rÍ   rð   Únewn_aÚnewn_brJ   s   &&&&&                  €r5   rÁ   Úbesselk._eval_nseriesÍ  s~  ø€ Ý,Ø—	‘	‰ˆð	Ø—Z‘Z “]‰FˆAð �?�?‰?Ø�1•×#Ñ# A¨$Ó5×=Ñ=Ó?ˆAØ”A—F‘F‹{Ù˜Q �X¨­Õ-¨qÓ1Ð1á�a•d˜A“ˆAØ�}�}‰}ä˜q�u“~�Ü˜R“^�Ø˜B �F•^¤C¨¨!­£HÕ,¨RÕ/×>Ñ>¸qÀTÓP�à˜2�1�Ü˜Q �T“N�àœŸ™”;Ø˜s�8¤I¨b°1­fÓ$5Õ5°aÕ7�DØ—H‘H˜T”NÜ" 1 bž\˜Ø  A¨¥F¨A¥:¥Õ.˜Ü (¨£°Õ 2×;Ñ;Ó=˜ØŸ™ žñ *ð
 •E˜2 �(•N A¤i°£m¥OÕ4�Øœ' " q¥&›/¬A¯L©LÕ8Õ9�Ø—‘˜”Ü˜q 4¨!¥8¨a¥-Ö0�AØ˜˜A˜q 2�v�J�Õ'�AÜ! !› q�×1Ñ1Ó3�AØœg a¨"¥f¨q¥jÓ1´G¸AÀ½E³NÕBÕC�DØ—H‘H˜T–Nñ	 1ð
 œ3 ™7•{¤S¨!¡WÕ,¨qÕ0Ð0Ø×!×!Ñ!ô ! !¥$¨¥Ó,�Ü  !¥$¨¥Ó,�à˜2�1Ü  q¥¨1�}Ö-�AÜ  ›9 Q¨¨1­¨R­¥[Õ0°!´OÀAÀbÅDÈ!Ó4LÕ2LÌYÐWXË\Õ2YÕZ�DØ—H‘HœX d›^Ö,ñ .ô   q¥¨1�}Ö-�AÜ  " ›: a¨!¨A­#¨b­&¥kÕ1°1´_ÀRÈÅTÈ1Ó5MÕ3MÌiÐXYËlÕ3ZÕ[�DØ—H‘HœX d›^Ö,ñ .ô ˜A‘w¤ a¡Õ(¨1Õ,Ð,ä)Ð*`ÓaÐaä”W˜dÑ1°!¸ÓCÐCøô{ Ô/Ð0ô 	ØŠKð	ús   —R2 Ò2SÓSc           
     óÜ  <€ ^ RI Hp ^ RIHp V^,          pV\        P
                  \        P                  39   Ed   V P                  w  r‰\        V4       U
u. uFŽ  p
V! \        ^V,          ^,
          ^4      V
4      V! \        ^V,          ^,           ^4      V
4      ,          RV
,          V	\        ^V
,          ^,           ^4      ,          ,          \        V
4      ,          ,          NK�  	  up
V! ^V	\        ^V,          ^,           ^4      ,          ,          V4      .,           p\        V	) 4      \        \        ^,          4      ,          \        V!  ,          # \        SV `A  WW44      # u up
i ©r   r  r¼   éþÿÿÿr  r  s   &&&&&       €r5   r  Úbesselk._eval_aseries  s2  ø€ ÝLÝ,Ø�a•ˆà”Q—Z‘Z¤×!3Ñ!3Ð4Õ4Ø—I‘I‰EˆBäHMÈaÌóRÙHPÀ1ñ "¤(¨1¨R­4°!­8°QÓ"7¸Ó;¹OÌHÐUVÐWYÕUYÐ\]ÕU]Ð_`ÓLaÐcdÓ<eÕeØ�A�Y�qœ8 A a¥C¨!¥G¨QÓ/Õ0Õ0´¸1³Õ=÷?ð ?ÙHPñRÙTYÐZ[Ð\]Ô`hÐijÐklÕilÐopÕipÐrsÓ`tÕ\uÕZuÐwxÓTyÐSzõ{ˆAä˜˜“GœD¤ A¥›JÕ&¬¨Q©Õ/Ð/ä‰wÑ$ Q¨qÓ7Ð7ùò	Rs   ÁBE)r?   r>   rÏ   )ry   rz   r{   r|   r}   r   r†   rK   rI   r   rD   r˜   rÖ   rœ   rß   r·   rú   r«   rÁ   r  r€   r�   rÐ   rÑ   s   @@r5   r  r  _  si   ù‡ € ñ#ðJ 
�‰€BØ
�%‰%ˆ€Bàñ'ó ð'òFò'ò
'ò
"ò
ô
+ò&÷2CD÷J8õ 8r9   r  c                   óZ   a € ] tR tRt o Rt]P                  t]P                  tR t	Rt
V tR# )Úhankel1i   aL  
Hankel function of the first kind.

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

This function is defined as

.. math ::
    H_\nu^{(1)} = J_\nu(z) + iY_\nu(z),

where $J_\nu(z)$ is the Bessel function of the first kind, and
$Y_\nu(z)$ is the Bessel function of the second kind.

It is a solution to Bessel's equation.

Examples
========

>>> from sympy import hankel1
>>> from sympy.abc import z, n
>>> hankel1(n, z).diff(z)
hankel1(n - 1, z)/2 - hankel1(n + 1, z)/2

See Also
========

hankel2, besselj, bessely

References
==========

.. [1] https://functions.wolfram.com/Bessel-TypeFunctions/HankelH1/

c                ó¢   € V P                   pVP                  R J d3   \        V P                  P	                  4       VP	                  4       4      # R# rQ   )r;   rR   Úhankel2r6   rS   rT   s   & r5   rU   Úhankel1._eval_conjugateH  ó>   € Ø�M‰MˆØ×!Ñ! UÓ*Ü˜4Ÿ:™:×/Ñ/Ó1°1·;±;³=ÓAÐAñ +r9   r?   N©ry   rz   r{   r|   r}   r   r†   rK   rI   rU   r€   r�   r‚   s   @r5   r4  r4     s+   ø‡ € ñ"ðH 
�‰€BØ	
�‰€B÷Bð Br9   r4  c                   óZ   a € ] tR tRt o Rt]P                  t]P                  tR t	Rt
V tR# )r6  iN  az  
Hankel function of the second kind.

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

This function is defined as

.. math ::
    H_\nu^{(2)} = J_\nu(z) - iY_\nu(z),

where $J_\nu(z)$ is the Bessel function of the first kind, and
$Y_\nu(z)$ is the Bessel function of the second kind.

It is a solution to Bessel's equation, and linearly independent from
$H_\nu^{(1)}$.

Examples
========

>>> from sympy import hankel2
>>> from sympy.abc import z, n
>>> hankel2(n, z).diff(z)
hankel2(n - 1, z)/2 - hankel2(n + 1, z)/2

See Also
========

hankel1, besselj, bessely

References
==========

.. [1] https://functions.wolfram.com/Bessel-TypeFunctions/HankelH2/

c                ó¢   € V P                   pVP                  R J d3   \        V P                  P	                  4       VP	                  4       4      # R# rQ   )r;   rR   r4  r6   rS   rT   s   & r5   rU   Úhankel2._eval_conjugatew  r8  r9   r?   Nr9  r‚   s   @r5   r6  r6  N  s+   ø‡ € ñ#ðJ 
�‰€BØ	
�‰€B÷Bð Br9   r6  c                 ó0   a € \        S 4      V 3R  l4       pV# )c                 ó>   <€ VP                   '       d
   S! WV4      # R # r>   )r[   )r4   rB   rC   Úfns   &&&€r5   ÚgÚassume_integer_order.<locals>.g~  s   ø€ à�=�=ˆ=Ù�d “?Ð"ñ r9   r   )r?  r@  s   f r5   Úassume_integer_orderrB  }  s    ø€ Ü
ˆ2ƒYô#ó ð#ð €Hr9   c                   ó:   a € ] tR tRt o RtR tR tRR ltRtV t	R# )	ÚSphericalBesselBasei…  a  
Base class for spherical Bessel functions.

These are thin wrappers around ordinary Bessel functions,
since spherical Bessel functions differ from the ordinary
ones just by a slight change in order.

To use this class, define the ``_eval_evalf()`` and ``_expand()`` methods.

c                ó   € \        R4      h)z?Expand self into a polynomial. Nu is guaranteed to be Integer. Ú	expansion©r¨   ©r4   rp   s   &,r5   Ú_expandÚSphericalBesselBase._expand‘  s   € ä! +Ó.Ð.r9   c                ób   € V P                   P                  '       d   V P                  ! R/ VB # V # ©Nr?   )r6   Ú
is_IntegerrI  rH  s   &,r5   rn   Ú%SphericalBesselBase._eval_expand_func•  s)   € Ø�:‰:× × Ð Ø—<’<Ñ( %Ñ(Ð(Øˆr9   c                óÞ   € V^8w  d   \        W4      hV P                  V P                  ^,
          V P                  4      W P                  ^,           ,          V P                  ,          ,
          # rG   )r
   rJ   r6   r;   rL   s   &&r5   rN   ÚSphericalBesselBase.fdiffš  sO   € Ø�qŒ=Ü$ TÓ4Ð4Ø�~‰~˜dŸj™j¨1�n¨d¯m©mÓ<Ø—J‘J •NÕ# D§M¡MÕ1õ2ð 	2r9   r?   NrG   )
ry   rz   r{   r|   r}   rI  rn   rN   r€   r�   r‚   s   @r5   rD  rD  …  s   ø‡ € ñ	ò/ò÷
2ò 2r9   rD  c                 óÐ   € \        W4      \        V4      ,          \        P                  V ^,           ,          \        V ) ^,
          V4      ,          \	        V4      ,          ,           # rj   )r+   r   r   rŽ   r   ©r“   rC   s   &&r5   Ú_jnrS  ¡  sK   € Ü Ó%¤c¨!£fÕ,Ü�M‰M˜A �EÕ"Ô#6¸°r¸Aµv¸qÓ#AÕAÄ#ÀaÃ&ÕHõIð Jr9   c                 óÐ   € \         P                  V ^,           ,          \        V ) ^,
          V4      ,          \        V4      ,          \        W4      \	        V4      ,          ,
          # rj   )r   rŽ   r+   r   r   rR  s   &&r5   Ú_ynrU  ¦  sI   € ä�M‰M˜A �EÕ"Ô%8¸!¸¸a½ÀÓ%CÕCÄCÈÃFÕJÜ Ó%¤c¨!£fÕ,õ-ð .r9   c                   óR   a € ] tR tRt o Rt]R 4       tR tR tR t	R t
R tR	tV tR
# )ra   i¬  aV  
Spherical Bessel function of the first kind.

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

This function is a solution to the spherical Bessel equation

.. math ::
    z^2 \frac{\mathrm{d}^2 w}{\mathrm{d}z^2}
      + 2z \frac{\mathrm{d}w}{\mathrm{d}z} + (z^2 - \nu(\nu + 1)) w = 0.

It can be defined as

.. math ::
    j_\nu(z) = \sqrt{\frac{\pi}{2z}} J_{\nu + \frac{1}{2}}(z),

where $J_\nu(z)$ is the Bessel function of the first kind.

The spherical Bessel functions of integral order are
calculated using the formula:

.. math:: j_n(z) = f_n(z) \sin{z} + (-1)^{n+1} f_{-n-1}(z) \cos{z},

where the coefficients $f_n(z)$ are available as
:func:`sympy.polys.orthopolys.spherical_bessel_fn`.

Examples
========

>>> from sympy import Symbol, jn, sin, cos, expand_func, besselj, bessely
>>> z = Symbol("z")
>>> nu = Symbol("nu", integer=True)
>>> print(expand_func(jn(0, z)))
sin(z)/z
>>> expand_func(jn(1, z)) == sin(z)/z**2 - cos(z)/z
True
>>> expand_func(jn(3, z))
(-6/z**2 + 15/z**4)*sin(z) + (1/z - 15/z**3)*cos(z)
>>> jn(nu, z).rewrite(besselj)
sqrt(2)*sqrt(pi)*sqrt(1/z)*besselj(nu + 1/2, z)/2
>>> jn(nu, z).rewrite(bessely)
(-1)**nu*sqrt(2)*sqrt(pi)*sqrt(1/z)*bessely(-nu - 1/2, z)/2
>>> jn(2, 5.2+0.3j).evalf(20)
0.099419756723640344491 - 0.054525080242173562897*I

See Also
========

besselj, bessely, besselk, yn

References
==========

.. [1] https://dlmf.nist.gov/10.47

c                ó`  € VP                   '       dg   VP                   '       d   \        P                  # VP                  '       d3   VP                  '       d   \        P
                  # \        P                  # V\        P                  \        P                  39   d   \        P
                  # R # r>   )	rc   r   r†   r[   rm   r‡   rˆ   rŒ   r‹   r@   s   &&&r5   rD   Újn.evalæ  si   € à�9�9ˆ9Ø�z�zˆzÜ—u‘u�Ø——�Ø—>—>�>ÜŸ6™6�Mä×,Ñ,Ð,Ø”×#Ñ#¤Q§Z¡ZÐ0Ô0Ü—6‘6ˆMñ 1r9   c                óˆ   € \        \        ^V,          ,          4      \        V\        P                  ,           V4      ,          # rG   )r    r   r]   r   rŸ   r—   s   &&&,r5   rÖ   Újn._eval_rewrite_as_besseljó  s(   € Ü”B˜˜!�•H‹~¤¨¬Q¯V©V­°QÓ 7Õ7Ð7r9   c                óÂ   € \         P                  V,          \        \        ^V,          ,          4      ,          \	        V) \         P
                  ,
          V4      ,          # rG   )r   rŽ   r    r   r›   rŸ   r—   s   &&&,r5   rœ   Újn._eval_rewrite_as_besselyö  s8   € Ü�}‰}˜bÕ ¤4¬¨A¨a­C­£>Õ1´G¸R¸CÄ!Ç&Á&½LÈ!Ó4LÕLÐLr9   c                ób   € \         P                  V,          \        V) ^,
          V4      ,          # rj   )r   rŽ   rb   r—   s   &&&,r5   rß   Újn._eval_rewrite_as_ynù  s"   € Ü�}‰}˜rÕ"¤R¨¨¨a­°£^Õ3Ð3r9   c                óB   € \        V P                  V P                  4      # r>   )rS  r6   r;   rH  s   &,r5   rI  Ú
jn._expandü  ó   € Ü�4—:‘:˜tŸ}™}Ó-Ð-r9   c                ó†   € V P                   P                  '       d%   V P                  \        4      P	                  V4      # R # r>   ©r6   rM  rÙ   r]   Ú_eval_evalf©r4   Úprecs   &&r5   rd  Újn._eval_evalfÿ  ó1   € Ø�:‰:× × Ð Ø—<‘<¤Ó(×4Ñ4°TÓ:Ð:ñ !r9   r?   N)ry   rz   r{   r|   r}   r   rD   rÖ   rœ   rß   rI  rd  r€   r�   r‚   s   @r5   ra   ra   ¬  s>   ø‡ € ñ8ðr ñ
ó ð
ò8òMò4ò.÷;ð ;r9   ra   c                   óV   a € ] tR tRt o Rt]R 4       t]R 4       tR tR t	R t
RtV tR	# )
rb   i  a%  
Spherical Bessel function of the second kind.

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

This function is another solution to the spherical Bessel equation, and
linearly independent from $j_n$. It can be defined as

.. math ::
    y_\nu(z) = \sqrt{\frac{\pi}{2z}} Y_{\nu + \frac{1}{2}}(z),

where $Y_\nu(z)$ is the Bessel function of the second kind.

For integral orders $n$, $y_n$ is calculated using the formula:

.. math:: y_n(z) = (-1)^{n+1} j_{-n-1}(z)

Examples
========

>>> from sympy import Symbol, yn, sin, cos, expand_func, besselj, bessely
>>> z = Symbol("z")
>>> nu = Symbol("nu", integer=True)
>>> print(expand_func(yn(0, z)))
-cos(z)/z
>>> expand_func(yn(1, z)) == -cos(z)/z**2-sin(z)/z
True
>>> yn(nu, z).rewrite(besselj)
(-1)**(nu + 1)*sqrt(2)*sqrt(pi)*sqrt(1/z)*besselj(-nu - 1/2, z)/2
>>> yn(nu, z).rewrite(bessely)
sqrt(2)*sqrt(pi)*sqrt(1/z)*bessely(nu + 1/2, z)/2
>>> yn(2, 5.2+0.3j).evalf(20)
0.18525034196069722536 + 0.014895573969924817587*I

See Also
========

besselj, bessely, besselk, jn

References
==========

.. [1] https://dlmf.nist.gov/10.47

c                óÐ   € \         P                  V^,           ,          \        \        ^V,          ,          4      ,          \	        V) \         P
                  ,
          V4      ,          # rj   )r   rŽ   r    r   r]   rŸ   r—   s   &&&,r5   rÖ   Úyn._eval_rewrite_as_besselj3  s<   € ä�}‰}˜r !�tÕ$¤t¬B°°!µ­H£~Õ5¼ÀÀÄaÇfÁfÅÈaÓ8PÕPÐPr9   c                óˆ   € \        \        ^V,          ,          4      \        V\        P                  ,           V4      ,          # rG   )r    r   r›   r   rŸ   r—   s   &&&,r5   rœ   Úyn._eval_rewrite_as_bessely7  s(   € ä”B˜˜!�•H‹~¤¨¬Q¯V©V­°QÓ 7Õ7Ð7r9   c                óp   € \         P                  V^,           ,          \        V) ^,
          V4      ,          # rj   )r   rŽ   ra   r—   s   &&&,r5   r    Úyn._eval_rewrite_as_jn;  s&   € Ü�}‰}˜r A�vÕ&¬¨R¨C°!­G°Q«Õ7Ð7r9   c                óB   € \        V P                  V P                  4      # r>   )rU  r6   r;   rH  s   &,r5   rI  Ú
yn._expand>  ra  r9   c                ó†   € V P                   P                  '       d%   V P                  \        4      P	                  V4      # R # r>   )r6   rM  rÙ   r›   rd  re  s   &&r5   rd  Úyn._eval_evalfA  rh  r9   r?   N)ry   rz   r{   r|   r}   rB  rÖ   rœ   r    rI  rd  r€   r�   r‚   s   @r5   rb   rb     sI   ø‡ € ñ-ð\ ñQó ðQð ñ8ó ð8ò8ò.÷;ð ;r9   rb   c                   ó^   a € ] tR tRt o ]R 4       t]R 4       tR tR tR t	R t
R tR	tV tR
# )ÚSphericalHankelBaseiF  c                óX  € V P                   p\        \        ^V,          ,          4      \        V\        P
                  ,           V4      V\        ,          \        P                  V^,           ,          ,          \        V) \        P
                  ,
          V4      ,          ,           ,          # rG   )Ú_hankel_kind_signr    r   r]   r   rŸ   r   rŽ   ©r4   rB   rC   rv   Úhkss   &&&, r5   rÖ   Ú,SphericalHankelBase._eval_rewrite_as_besseljH  sq   € ð
 ×$Ñ$ˆÜ”B˜˜!�•H‹~œw r¬A¯F©F¥{°AÓ6Ø"¤1�u¤Q§]¡]°R¸µTÕ%:Õ:¼7ÀBÀ3ÌÏÉÅ<ÐQRÓ;SÕSõ Tõ Uð 	Ur9   c                óJ  € V P                   p\        \        ^V,          ,          4      \        P                  V,          \        V) \        P                  ,
          V4      ,          V\        ,          \        V\        P                  ,           V4      ,          ,           ,          # rG   )rw  r    r   r   rŽ   r›   rŸ   r   rx  s   &&&, r5   rœ   Ú,SphericalHankelBase._eval_rewrite_as_besselyQ  si   € ð
 ×$Ñ$ˆÜ”B˜˜!�•H‹~œqŸ}™}¨bÕ0´¸"¸¼q¿v¹v½ÀqÓ1IÕIØ"¤1�u¤W¨R´!·&±&­[¸!Ó%<Õ<õ =õ >ð 	>r9   c                óš   € V P                   p\        W4      P                  \        4      V\        ,          \        W4      ,          ,           # r>   )rw  ra   rÙ   rb   r   rx  s   &&&, r5   rß   Ú'SphericalHankelBase._eval_rewrite_as_ynZ  s3   € Ø×$Ñ$ˆÜ�"‹y× Ñ ¤Ó$ s¬1¥u¬R°«Y¥Õ6Ð6r9   c                óš   € V P                   p\        W4      V\        ,          \        W4      P	                  \        4      ,          ,           # r>   )rw  ra   r   rb   rÙ   rx  s   &&&, r5   r    Ú'SphericalHankelBase._eval_rewrite_as_jn^  s4   € Ø×$Ñ$ˆÜ�"‹y˜3œq�5¤ B£×!2Ñ!2´2Ó!6Õ6Õ6Ð6r9   c                ó   € V P                   P                  '       d   V P                  ! R/ VB # V P                   pV P                  pV P                  p\        W#4      V\        ,          \        W#4      ,          ,           # rL  )r6   rM  rI  r;   rw  ra   r   rb   )r4   rp   rB   rC   ry  s   &,   r5   rn   Ú%SphericalHankelBase._eval_expand_funcb  s\   € Ø�:‰:× × Ð Ø—<’<Ñ( %Ñ(Ð(à—‘ˆBØ—‘ˆAØ×(Ñ(ˆCÜ�b“9˜s¤1�u¤R¨£Y�Õ.Ð.r9   c                óÀ   € V P                   pV P                  pV P                  p\        W#4      V\        ,          \        W#4      ,          ,           P                  4       # r>   )r6   r;   rw  rS  r   rU  Úexpand)r4   rp   r“   rC   ry  s   &,   r5   rI  ÚSphericalHankelBase._expandk  sE   € Ø�J‰JˆØ�M‰MˆØ×$Ñ$ˆô �A“	˜C¤�E¤# a£)�OÕ+×3Ñ3Ó5Ð5r9   c                ó†   € V P                   P                  '       d%   V P                  \        4      P	                  V4      # R # r>   rc  re  s   &&r5   rd  ÚSphericalHankelBase._eval_evalfz  rh  r9   r?   N)ry   rz   r{   r|   rB  rÖ   rœ   rß   r    rn   rI  rd  r€   r�   r‚   s   @r5   ru  ru  F  sK   ø‡ € àñUó ðUð ñ>ó ð>ò7ò7ò/ò6÷;ð ;r9   ru  c                   óL   a € ] tR tRt o Rt]P                  t]R 4       t	Rt
V tR# )r_   i  a  
Spherical Hankel function of the first kind.

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

This function is defined as

.. math:: h_\nu^(1)(z) = j_\nu(z) + i y_\nu(z),

where $j_\nu(z)$ and $y_\nu(z)$ are the spherical
Bessel function of the first and second kinds.

For integral orders $n$, $h_n^(1)$ is calculated using the formula:

.. math:: h_n^(1)(z) = j_{n}(z) + i (-1)^{n+1} j_{-n-1}(z)

Examples
========

>>> from sympy import Symbol, hn1, hankel1, expand_func, yn, jn
>>> z = Symbol("z")
>>> nu = Symbol("nu", integer=True)
>>> print(expand_func(hn1(nu, z)))
jn(nu, z) + I*yn(nu, z)
>>> print(expand_func(hn1(0, z)))
sin(z)/z - I*cos(z)/z
>>> print(expand_func(hn1(1, z)))
-I*sin(z)/z - cos(z)/z + sin(z)/z**2 - I*cos(z)/z**2
>>> hn1(nu, z).rewrite(jn)
(-1)**(nu + 1)*I*jn(-nu - 1, z) + jn(nu, z)
>>> hn1(nu, z).rewrite(yn)
(-1)**nu*yn(-nu - 1, z) + I*yn(nu, z)
>>> hn1(nu, z).rewrite(hankel1)
sqrt(2)*sqrt(pi)*sqrt(1/z)*hankel1(nu, z)/2

See Also
========

hn2, jn, yn, hankel1, hankel2

References
==========

.. [1] https://dlmf.nist.gov/10.47

c                ó\   € \        \        ^V,          ,          4      \        W4      ,          # rG   )r    r   r4  r—   s   &&&,r5   Ú_eval_rewrite_as_hankel1Úhn1._eval_rewrite_as_hankel1²  ó   € ä”B˜˜!�•H‹~œg b›nÕ,Ð,r9   r?   N)ry   rz   r{   r|   r}   r   r†   rw  rB  rŠ  r€   r�   r‚   s   @r5   r_   r_     s)   ø‡ € ñ.ð` Ÿ™Ðàñ-ó ö-r9   r_   c                   óN   a € ] tR tRt o Rt]P                  ) t]R 4       t	Rt
V tR# )r`   i·  a  
Spherical Hankel function of the second kind.

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

This function is defined as

.. math:: h_\nu^(2)(z) = j_\nu(z) - i y_\nu(z),

where $j_\nu(z)$ and $y_\nu(z)$ are the spherical
Bessel function of the first and second kinds.

For integral orders $n$, $h_n^(2)$ is calculated using the formula:

.. math:: h_n^(2)(z) = j_{n} - i (-1)^{n+1} j_{-n-1}(z)

Examples
========

>>> from sympy import Symbol, hn2, hankel2, expand_func, jn, yn
>>> z = Symbol("z")
>>> nu = Symbol("nu", integer=True)
>>> print(expand_func(hn2(nu, z)))
jn(nu, z) - I*yn(nu, z)
>>> print(expand_func(hn2(0, z)))
sin(z)/z + I*cos(z)/z
>>> print(expand_func(hn2(1, z)))
I*sin(z)/z - cos(z)/z + sin(z)/z**2 + I*cos(z)/z**2
>>> hn2(nu, z).rewrite(hankel2)
sqrt(2)*sqrt(pi)*sqrt(1/z)*hankel2(nu, z)/2
>>> hn2(nu, z).rewrite(jn)
-(-1)**(nu + 1)*I*jn(-nu - 1, z) + jn(nu, z)
>>> hn2(nu, z).rewrite(yn)
(-1)**nu*yn(-nu - 1, z) - I*yn(nu, z)

See Also
========

hn1, jn, yn, hankel1, hankel2

References
==========

.. [1] https://dlmf.nist.gov/10.47

c                ó\   € \        \        ^V,          ,          4      \        W4      ,          # rG   )r    r   r6  r—   s   &&&,r5   Ú_eval_rewrite_as_hankel2Úhn2._eval_rewrite_as_hankel2ê  rŒ  r9   r?   N)ry   rz   r{   r|   r}   r   r†   rw  rB  r�  r€   r�   r‚   s   @r5   r`   r`   ·  s+   ø‡ € ñ.ð` Ÿ™˜Ðàñ-ó ö-r9   r`   c                ó\  a aaaa€ ^ RI Hp SR8X  d|   ^ RIHp ^ RIHp V! V4      p\        ^V^,           4       Uu. uFI  p\        P                  ! V! \        S R,           4      P                  V4      \        V4      4      V4      NKK  	  up# SR8X  d   ^ RIHo  ^ RIHo V V3R	 lp	M\%        R4      hVV3R lp
S V,           pV
! W›4      pV.p\        V^,
          4       F#  pV
! W›V,           4      pVP'                  V4       K%  	  V# u upi   \          d    ^ R
IHo T T3R lp	 Lui ; i)a1  
Zeros of the spherical Bessel function of the first kind.

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

This returns an array of zeros of $jn$ up to the $k$-th zero.

* method = "sympy": uses `mpmath.besseljzero
  <https://mpmath.org/doc/current/functions/bessel.html#mpmath.besseljzero>`_
* method = "scipy": uses the
  `SciPy's sph_jn <https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.jn_zeros.html>`_
  and
  `newton <https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.newton.html>`_
  to find all
  roots, which is faster than computing the zeros using a general
  numerical solver, but it requires SciPy and only works with low
  precision floating point numbers. (The function used with
  method="sympy" is a recent addition to mpmath; before that a general
  solver was used.)

Examples
========

>>> from sympy import jn_zeros
>>> jn_zeros(2, 4, dps=5)
[5.7635, 9.095, 12.323, 15.515]

See Also
========

jn, yn, besselj, besselk, bessely

Parameters
==========

n : integer
    order of Bessel function

k : integer
    number of zeros to return


)r   Úsympy)Úbesseljzero)Údps_to_precg      à?Úscipy)Únewton)Úspherical_jnc                 ó   <€ S! SV 4      # r>   r?   )re   r“   r—  s   &€€r5   Ú<lambda>Újn_zeros.<locals>.<lambda>)  s   ø€ ™, q¨!Ô,r9   )Úsph_jnc                 ó2   <€ S! SV 4      ^ ,          R,          # ©r   rô   r?   )re   r“   r›  s   &€€r5   r™  rš  ,  s   ø€ ™&  A›, q�/¨"Ö-r9   úUnknown method.c                 ó<   <€ SR 8X  d   S! W4      pV# \        R4      h)r•  rž  rG  )rq   re   r!   Úmethodr–  s   && €€r5   ÚsolverÚjn_zeros.<locals>.solver0  s)   ø€ Ø�WÔÙ˜!“<ˆDð ˆô &Ð&7Ó8Ð8r9   )Úmathr   Úmpmathr“  Úmpmath.libmp.libmpfr”  rÃ   r   Ú_from_mpmathr   Ú
_to_mpmathÚintÚscipy.optimizer–  Úscipy.specialr—  ÚImportErrorr›  r¨   rÄ   )r“   rÍ   r   ÚdpsÚmath_pir“  r”  rf  Úlrq   r¡  r!   ÚrootsÚir–  r›  r—  s   f&f&          @@@r5   Újn_zerosr±  ï  s  ü€ õZ #à�ÔÝ&Ý3Ù˜3Óˆô ˜q ! a¥%œó*á(�Aô ×!Ò!¡+¬a°°Cµ«j×.CÑ.CÀDÓ.IÜ.1°!«fó#6Ø7;ö=á(ñ*ð 	*ð 
�7Ô	Ý)ð	.Ý2Ý,‰Aô
 "Ð"3Ó4Ð4öð ˆw�;€Dá�!‹?€DØˆF€EÜ�1�q•5Ž\ˆá�a �Ó(ˆØ�‰�TÖñ ð €Lùò=*øô ô 	.Ý,Ý-ŠAð	.ús   ¼ADÂD ÄD+Ä*D+c                   óD   a € ] tR tRt o RtR tR tR	R ltR	R ltRt	V t
R# )
ÚAiryBaseiC  z[
Abstract base class for Airy functions.

This class is meant to reduce code duplication.

c                ób   € V P                  V P                  ^ ,          P                  4       4      # rÏ   )r(  r2   rS   r3   s   &r5   rU   ÚAiryBase._eval_conjugateK  s"   € Ø�y‰y˜Ÿ™ 1�×/Ñ/Ó1Ó2Ð2r9   c                ó<   € V P                   ^ ,          P                  # rÏ   )r2   rµ   r3   s   &r5   r·   ÚAiryBase._eval_is_extended_realN  s   € Ø�y‰y˜�|×,Ñ,Ð,r9   c                óì   € V P                   ^ ,          pVP                  4       pV P                  pV! V4      V! V4      ,           ^,          p\        V! V4      V! V4      ,
          ,          ^,          pWg3# rÏ   )r2   rS   r(  r   )r4   Údeeprp   rC   Úzcrq   ÚuÚvs   &&,     r5   Úas_real_imagÚAiryBase.as_real_imagQ  sY   € Ø�I‰I�a�LˆØ�[‰[‹]ˆØ�I‰IˆÙˆq‹T‘!�B“%�Z˜�NˆÜ‰q�‹u‘Q�q“T�z�N˜1ÕˆØˆtˆr9   c                óT   € V P                   ! RR V/VB w  r4W4\        ,          ,           # )r¹  r?   )r½  r   )r4   r¹  rp   Úre_partÚim_parts   &&,  r5   Ú_eval_expand_complexÚAiryBase._eval_expand_complexY  s*   € Ø×,Ò,Ñ@°$Ð@¸%Ñ@ÑˆØ¤�Õ"Ð"r9   r?   N)T)ry   rz   r{   r|   r}   rU   r·   r½  rÂ  r€   r�   r‚   s   @r5   r³  r³  C  s#   ø‡ € ñò3ò-ô÷#ò #r9   r³  c                   óx   a € ] tR tRt o Rt^tRt]R 4       tRR lt	]
]R 4       4       tR tR tR	 tR
 tRtV tR# )Úairyaii^  až  
The Airy function $\operatorname{Ai}$ of the first kind.

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

The Airy function $\operatorname{Ai}(z)$ is defined to be the function
satisfying Airy's differential equation

.. math::
    \frac{\mathrm{d}^2 w(z)}{\mathrm{d}z^2} - z w(z) = 0.

Equivalently, for real $z$

.. math::
    \operatorname{Ai}(z) := \frac{1}{\pi}
    \int_0^\infty \cos\left(\frac{t^3}{3} + z t\right) \mathrm{d}t.

Examples
========

Create an Airy function object:

>>> from sympy import airyai
>>> from sympy.abc import z

>>> airyai(z)
airyai(z)

Several special values are known:

>>> airyai(0)
3**(1/3)/(3*gamma(2/3))
>>> from sympy import oo
>>> airyai(oo)
0
>>> airyai(-oo)
0

The Airy function obeys the mirror symmetry:

>>> from sympy import conjugate
>>> conjugate(airyai(z))
airyai(conjugate(z))

Differentiation with respect to $z$ is supported:

>>> from sympy import diff
>>> diff(airyai(z), z)
airyaiprime(z)
>>> diff(airyai(z), z, 2)
z*airyai(z)

Series expansion is also supported:

>>> from sympy import series
>>> series(airyai(z), z, 0, 3)
3**(5/6)*gamma(1/3)/(6*pi) - 3**(1/6)*z*gamma(2/3)/(2*pi) + O(z**3)

We can numerically evaluate the Airy function to arbitrary precision
on the whole complex plane:

>>> airyai(-2).evalf(50)
0.22740742820168557599192443603787379946077222541710

Rewrite $\operatorname{Ai}(z)$ in terms of hypergeometric functions:

>>> from sympy import hyper
>>> airyai(z).rewrite(hyper)
-3**(2/3)*z*hyper((), (4/3,), z**3/9)/(3*gamma(1/3)) + 3**(1/3)*hyper((), (2/3,), z**3/9)/(3*gamma(2/3))

See Also
========

airybi: Airy function of the second kind.
airyaiprime: Derivative of the Airy function of the first kind.
airybiprime: Derivative of the Airy function of the second kind.

References
==========

.. [1] https://en.wikipedia.org/wiki/Airy_function
.. [2] https://dlmf.nist.gov/9
.. [3] https://encyclopediaofmath.org/wiki/Airy_functions
.. [4] https://mathworld.wolfram.com/AiryFunctions.html

Tc                óR  € VP                   '       dÁ   V\        P                  J d   \        P                  # V\        P                  J d   \        P                  # V\        P
                  J d   \        P                  # VP                  '       dC   \        P                  ^\        ^^4      ,          \        \        ^^4      4      ,          ,          # VP                  '       dC   \        P                  ^\        ^^4      ,          \        \        ^^4      4      ,          ,          # R# ©é   N)
Ú	is_Numberr   rŠ   r‹   r‡   rŒ   rc   r†   r   r'   ©rA   r­   s   &&r5   rD   Úairyai.evalº  s¶   € à�=�=ˆ=Ø”a—e‘e‹|Ü—u‘u�ØœŸ
™
Ó"Ü—v‘v�Øœ×*Ñ*Ó*Ü—v‘v�Ø——�Ü—u‘u ¤8¨A¨q£>Õ 1´E¼(À1Àa».Ó4IÕ IÕJÐJØ�;�;ˆ;Ü—5‘5˜Aœx¨¨1›~Õ-´´h¸qÀ!³nÓ0EÕEÕFÐFñ r9   c                ó^   € V^8X  d   \        V P                  ^ ,          4      # \        W4      hrj   )Úairyaiprimer2   r
   rL   s   &&r5   rN   Úairyai.fdiffÈ  ó'   € Ø�qŒ=Ü˜tŸy™y¨�|Ó,Ð,ä$ TÓ4Ð4r9   c           	     ó–  € V ^ 8  d   \         P                  # \        V4      p\        V4      ^8”  EdA   VR,          p\	        ^4      V,          V ) ,          \	        ^4      V,          V ^,           ,          ,          \        \        V \        ^^4      ,          \        ^^4      ,           ,          4      ,          \        V 4      ,          \        V ^,          \        ^^4      ,           4      ,          \        \        V \        ^^4      ,          \        ^^4      ,           ,          4      \        V ^,           4      ,          \        V ^,          \        ^^4      ,           4      ,          ,          V,          # \         P                  ^\        ^^4      ,          \        ,          ,          \        V \         P                  ,           \        ^4      ,          4      ,          \        \        ^^4      \        ,          V \         P                  ,           ,          4      ,          \        V 4      ,          \	        ^4      V,          V ,          ,          # r�  )r   r‡   r   Úlenr   r   r   r   r   r'   r†   ©r“   re   Úprevious_termsrð   s   &&* r5   Útaylor_termÚairyai.taylor_termÎ  sÆ  € ð ˆqŒ5Ü—6‘6ˆMä˜“
ˆAÜ�>Ó" QÕ&Ø" 2Õ&�Ü˜a› � q bÕ)¬4°«7°1­9¸¸A½Õ*>Õ>¼sÄ2ÀqÌÐRSÐUVËÕGWÔZbÐcdÐfgÓZhÕGhÕCiÓ?jÕjÔktÐuvÓkwÕwÜ˜a �c¤H¨Q°£NÕ2Ó3õ4Ü58¼¸Q¼xÈÈ1»~Õ=MÔPXÐYZÐ\]ÓP^Õ=^Õ9_Ó5`ÔajÐklÐopÕkpÓaqÕ5qÔrwÐxyÐz{Õx{ô  Gð  HIð  KLó  Mõ  yMó  sNõ  6NõOð RSõSð Tô Ÿ™˜q¤(¨1¨a£.Õ0´Õ3Õ4´u¸aÄÇÁ½gÄqÈÃt½^Ó7LÕLÌsÔS[Ð\]Ð_`ÓSaÔbdÕSdÐfgÔhi×hmÑhmÕfmÕSnÓOoÕoÜ! !›õ%Ü(,¨Q«°­	°A¥~õ6ð 7r9   c                ó  € \        ^^4      p\        ^^4      p\        V) \        ^^4      4      p\        V4      P                  '       dC   V\	        V) 4      ,          \        V) WE,          4      \        W4V,          4      ,           ,          # R# ©rk   N©r   r   r#   ro   r    r]   ©r4   rC   rv   ÚotÚttrf   s   &&,   r5   rÖ   Úairyai._eval_rewrite_as_besseljÝ  so   € Ü�a˜‹^ˆÜ�a˜‹^ˆÜ��”H˜Q “NÓ#ˆÜˆa‹5××ÐØ”d˜A˜2“h•;¤'¨2¨#¨r­tÓ"4´w¸rÀaÅ4Ó7HÕ"HÕIÐIñ r9   c                óÈ  € \        ^^4      p\        ^^4      p\        V\        ^^4      4      p\        V4      P                  '       dB   V\	        V4      ,          \        V) WE,          4      \        W4V,          4      ,
          ,          # V\        WS4      \        V) WE,          4      ,          V\        WS) 4      ,          \        W4V,          4      ,          ,
          ,          # rj   ©r   r   r#   rm   r    r^   rÙ  s   &&,   r5   r˜   Úairyai._eval_rewrite_as_besseliä  s¤   € Ü�a˜‹^ˆÜ�a˜‹^ˆÜ�”8˜A˜q“>Ó"ˆÜˆa‹5××ÐØ”d˜1“g•:¤¨"¨¨b­dÓ!3´g¸bÀQÅ$Ó6GÕ!GÕHÐHà”s˜1“z¤'¨2¨#¨r­tÓ"4Õ4°q¼¸QÀ»µ}ÄWÈRÐTUÕQUÓEVÕ7VÕVÕWÐWr9   c           	     óž  € \         P                  ^\        ^^4      ,          \        \        ^^4      4      ,          ,          pV\	        ^^4      \        \        ^^4      4      ,          ,          pV\        . \        ^^4      .V^,          ^	,          4      ,          V\        . \        ^^4      .V^,          ^	,          4      ,          ,
          # ©rÈ  )r   r†   r   r'   r!   r*   ©r4   rC   rv   Úpf1Úpf2s   &&,  r5   Ú_eval_rewrite_as_hyperÚairyai._eval_rewrite_as_hyperí  s›   € Ü�e‰e�qœ( 1 a›.Õ(¬¬x¸¸1«~Ó)>Õ>Õ?ˆØ”4˜˜1“:œe¤H¨Q°£NÓ3Õ3Õ4ˆØ”U˜2¤¨¨A£Ð/°°Aµ°aµÓ8Õ8¸3ÄÀrÌHÐUVÐXYËNÐK[Ð]^Ð`aÕ]aÐbcÕ]cÓAdÕ;dÕdÐdr9   c                ót  € V P                   ^ ,          pVP                  p\        V4      ^8X  Edˆ   VP                  4       p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      pVP                  WVWH,          ,          V,          ,          4      p	V	Ee   W—,          p^V,          P                  '       dë   W•,          pW–,          pW˜,          pWdV,          ,          V,          Wg,          WGV,          ,          ,          ,          p
WVV,          ,          WGV,          ,          ,          p\        P                  V
\        P                  ,           \        V4      ,          V
\        P                  ,
          \        ^4      ,          \        V4      ,          ,
          ,          # R# R# R# ©r   r®   )ÚexcludeÚdÚmr“   N)r2   Úfree_symbolsrÑ  Úpopr   Úmatchr[   r   rŸ   r†   rÅ  r    Úairybi©r4   rp   r­   ÚsymbsrC   r®   rê  rë  r“   ÚMÚpfÚnewargs   &,          r5   rn   Úairyai._eval_expand_funcò  s?  € Ø�i‰i˜�lˆØ× Ñ ˆäˆu‹:˜�?Ø—	‘	“ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAØ—	‘	˜!˜q�t�V a�K�-Ó(ˆAØ‹}Ø•D�ð �a•C×#×#Ð#Ø��AØ��AØ��AØ �d�( Q�¨!­$°°qµSµ­/Õ:�BØ A¥�X¨¨a­C­Õ0�FÜŸ6™6 b¬1¯5©5¥j´&¸³.Õ%@ÀBÌÏÉÅJÔPTÐUVÓPWÕCWÔX^Ð_eÓXfÕCfÕ%fÕgÐgñ $ñ	 ñ r9   r?   Nrj   ©ry   rz   r{   r|   r}   ÚnargsÚ
unbranchedr   rD   rN   Ústaticmethodr   rÔ  rÖ   r˜   rå  rn   r€   r�   r‚   s   @r5   rÅ  rÅ  ^  sk   ø‡ € ñVðp €EØ€JàñGó ðGô5ð Øñ7ó ó ð7òJòXòe÷
hð hr9   rÅ  c                   óx   a € ] tR tRt o Rt^tRt]R 4       tRR lt	]
]R 4       4       tR tR tR	 tR
 tRtV tR# )rï  i
  aê  
The Airy function $\operatorname{Bi}$ of the second kind.

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

The Airy function $\operatorname{Bi}(z)$ is defined to be the function
satisfying Airy's differential equation

.. math::
    \frac{\mathrm{d}^2 w(z)}{\mathrm{d}z^2} - z w(z) = 0.

Equivalently, for real $z$

.. math::
    \operatorname{Bi}(z) := \frac{1}{\pi}
             \int_0^\infty
               \exp\left(-\frac{t^3}{3} + z t\right)
               + \sin\left(\frac{t^3}{3} + z t\right) \mathrm{d}t.

Examples
========

Create an Airy function object:

>>> from sympy import airybi
>>> from sympy.abc import z

>>> airybi(z)
airybi(z)

Several special values are known:

>>> airybi(0)
3**(5/6)/(3*gamma(2/3))
>>> from sympy import oo
>>> airybi(oo)
oo
>>> airybi(-oo)
0

The Airy function obeys the mirror symmetry:

>>> from sympy import conjugate
>>> conjugate(airybi(z))
airybi(conjugate(z))

Differentiation with respect to $z$ is supported:

>>> from sympy import diff
>>> diff(airybi(z), z)
airybiprime(z)
>>> diff(airybi(z), z, 2)
z*airybi(z)

Series expansion is also supported:

>>> from sympy import series
>>> series(airybi(z), z, 0, 3)
3**(1/3)*gamma(1/3)/(2*pi) + 3**(2/3)*z*gamma(2/3)/(2*pi) + O(z**3)

We can numerically evaluate the Airy function to arbitrary precision
on the whole complex plane:

>>> airybi(-2).evalf(50)
-0.41230258795639848808323405461146104203453483447240

Rewrite $\operatorname{Bi}(z)$ in terms of hypergeometric functions:

>>> from sympy import hyper
>>> airybi(z).rewrite(hyper)
3**(1/6)*z*hyper((), (4/3,), z**3/9)/gamma(1/3) + 3**(5/6)*hyper((), (2/3,), z**3/9)/(3*gamma(2/3))

See Also
========

airyai: Airy function of the first kind.
airyaiprime: Derivative of the Airy function of the first kind.
airybiprime: Derivative of the Airy function of the second kind.

References
==========

.. [1] https://en.wikipedia.org/wiki/Airy_function
.. [2] https://dlmf.nist.gov/9
.. [3] https://encyclopediaofmath.org/wiki/Airy_functions
.. [4] https://mathworld.wolfram.com/AiryFunctions.html

Tc                óR  € VP                   '       dÁ   V\        P                  J d   \        P                  # V\        P                  J d   \        P                  # V\        P                  J d   \        P
                  # VP                  '       dC   \        P                  ^\        ^^4      ,          \        \        ^^4      4      ,          ,          # VP                  '       dC   \        P                  ^\        ^^4      ,          \        \        ^^4      4      ,          ,          # R# rÇ  )
rÉ  r   rŠ   r‹   rŒ   r‡   rc   r†   r   r'   rÊ  s   &&r5   rD   Úairybi.evalh  s·   € à�=�=ˆ=Ø”a—e‘e‹|Ü—u‘u�ØœŸ
™
Ó"Ü—z‘zÐ!Øœ×*Ñ*Ó*Ü—v‘v�Ø——�Ü—u‘u ¤8¨A¨q£>Õ 1´E¼(À1Àa».Ó4IÕ IÕJÐJà�;�;ˆ;Ü—5‘5˜Aœx¨¨1›~Õ-´´h¸qÀ!³nÓ0EÕEÕFÐFñ r9   c                ó^   € V^8X  d   \        V P                  ^ ,          4      # \        W4      hrj   )Úairybiprimer2   r
   rL   s   &&r5   rN   Úairybi.fdiffw  rÏ  r9   c           
     óv  € V ^ 8  d   \         P                  # \        V4      p\        V4      ^8”  Ed/   VR,          p\	        ^4      V,          \        \        \        ^^4      \        ,          V \         P                  ,           ,          4      4      ,          \        V \         P                  ,
          \        ^4      ,          4      ,          V \         P                  ,           \        \        \        ^^4      \        ,          V \         P                  ,           ,          4      4      ,          \        V ^,
          \        ^4      ,          4      ,          ,          V,          # \         P                  \        ^^4      \        ,          ,          \        V \         P                  ,           \        ^4      ,          4      ,          \        \        \        ^^4      \        ,          V \         P                  ,           ,          4      4      ,          \        V 4      ,          \	        ^4      V,          V ,          ,          # r�  )r   r‡   r   rÑ  r   r"   r   r   r   r†   r   r   rŸ   r!   r'   rÒ  s   &&* r5   rÔ  Úairybi.taylor_term}  sw  € ð ˆqŒ5Ü—6‘6ˆMä˜“
ˆAÜ�>Ó" QÕ&Ø" 2Õ&�Ü˜Q› �	¤C¬¬H°Q¸«N¼2Õ,=¸qÄ1Ç5Á5½yÕ,IÓ(JÓ$KÕKÌiÐYZÔ]^×]bÑ]bÕYbÔdeÐfgÓdhÕXhÓNiÕiØœaŸe™e�)¤s¬3¬x¸¸1«~¼bÕ/@À!ÄaÇfÁfÅ*Õ/MÓ+NÓ'OÕOÔR[Ð]^ÐabÕ]bÔdeÐfgÓdhÕ\hÓRiÕiõkØmnõoð pô Ÿ™œt A q›z¬"�}Õ-´°q¼1¿5¹5µyÄ!ÀAÃ$Õ6FÓ0GÕGÌ#ÌcÔRZÐ[\Ð^_ÓR`ÔacÕRcÐefÔij×inÑinÕenÕRoÓNpÓJqÕqÜ! !›õ%Ü(,¨Q«°­	°A¥~õ6ð 7r9   c                ó  € \        ^^4      p\        ^^4      p\        V) \        ^^4      4      p\        V4      P                  '       dC   \	        V) ^,          4      \        V) WE,          4      \        W4V,          4      ,
          ,          # R# r×  rØ  rÙ  s   &&,   r5   rÖ   Úairybi._eval_rewrite_as_besseljŒ  so   € Ü�a˜‹^ˆÜ�a˜‹^ˆÜ��”H˜Q “NÓ#ˆÜˆa‹5××ÐÜ˜˜˜1�“:¤¨"¨¨b­dÓ!3´g¸bÀQÅ$Ó6GÕ!GÕHÐHñ r9   c                óò  € \        ^^4      p\        ^^4      p\        V\        ^^4      4      p\        V4      P                  '       dK   \	        V4      \	        ^4      ,          \        V) WE,          4      \        W4V,          4      ,           ,          # \        WS4      p\        WS) 4      p\	        V4      V\        V) WE,          4      ,          W,          \        W4V,          4      ,          ,           ,          # rj   rÞ  ©r4   rC   rv   rÚ  rÛ  rf   rî   r®   s   &&,     r5   r˜   Úairybi._eval_rewrite_as_besseli“  s²   € Ü�a˜‹^ˆÜ�a˜‹^ˆÜ�”8˜A˜q“>Ó"ˆÜˆa‹5××ÐÜ˜“7œ4 ›7•?¤g¨r¨c°2µ4Ó&8¼7À2È!ÅtÓ;LÕ&LÕMÐMä�A“
ˆAÜ�A�s“ˆAÜ˜“8˜Qœw¨ s¨B­DÓ1Õ1°AµC¼ÀÀqÅDÓ8IÕ4IÕIÕJÐJr9   c           	     ó�  € \         P                  \        ^^4      \        \	        ^^4      4      ,          ,          pV\        ^^4      ,          \        \	        ^^4      4      ,          pV\        . \	        ^^4      .V^,          ^	,          4      ,          V\        . \	        ^^4      .V^,          ^	,          4      ,          ,           # rá  )r   r†   r!   r'   r   r*   râ  s   &&,  r5   rå  Úairybi._eval_rewrite_as_hyperž  s•   € Ü�e‰e”t˜A˜q“z¤%¬°°A«Ó"7Õ7Õ8ˆØ”�Q˜“
�lœU¤8¨A¨q£>Ó2Õ2ˆØ”U˜2¤¨¨A£Ð/°°Aµ°aµÓ8Õ8¸3ÄÀrÌHÐUVÐXYËNÐK[Ð]^Ð`aÕ]aÐbcÕ]cÓAdÕ;dÕdÐdr9   c                ót  € V P                   ^ ,          pVP                  p\        V4      ^8X  Edˆ   VP                  4       p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      pVP                  WVWH,          ,          V,          ,          4      p	V	Ee   W—,          p^V,          P                  '       dë   W•,          pW–,          pW˜,          pWdV,          ,          V,          Wg,          WGV,          ,          ,          ,          p
WVV,          ,          WGV,          ,          ,          p\        P                  \        ^4      \        P                  V
,
          ,          \        V4      ,          \        P                  V
,           \        V4      ,          ,           ,          # R# R# R# rè  )r2   rì  rÑ  rí  r   rî  r[   r   rŸ   r    r†   rÅ  rï  rð  s   &,          r5   rn   Úairybi._eval_expand_func£  s=  € Ø�i‰i˜�lˆØ× Ñ ˆäˆu‹:˜�?Ø—	‘	“ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAØ—	‘	˜!˜q�t�V a�K�-Ó(ˆAØ‹}Ø•D�ð �a•C×#×#Ð#Ø��AØ��AØ��AØ �d�( Q�¨!­$°°qµSµ­/Õ:�BØ A¥�X¨¨a­C­Õ0�FÜŸ6™6¤T¨!£W¬a¯e©e°b­jÕ%9¼&À».Õ%HÌAÏEÉEÐTVÍJÔX^Ð_eÓXfÕKfÕ%fÕgÐgñ $ñ	 ñ r9   r?   Nrj   rö  r‚   s   @r5   rï  rï  
  sk   ø‡ € ñXðt €EØ€JàñGó ðGô5ð Øñ7ó ó ð7òIò	Kòe÷
hð hr9   rï  c                   ód   a € ] tR tRt o Rt^tRt]R 4       tRR lt	R t
R tR tR	 tR
 tRtV tR# )rÍ  i»  aI  
The derivative $\operatorname{Ai}^\prime$ of the Airy function of the first
kind.

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

The Airy function $\operatorname{Ai}^\prime(z)$ is defined to be the
function

.. math::
    \operatorname{Ai}^\prime(z) := \frac{\mathrm{d} \operatorname{Ai}(z)}{\mathrm{d} z}.

Examples
========

Create an Airy function object:

>>> from sympy import airyaiprime
>>> from sympy.abc import z

>>> airyaiprime(z)
airyaiprime(z)

Several special values are known:

>>> airyaiprime(0)
-3**(2/3)/(3*gamma(1/3))
>>> from sympy import oo
>>> airyaiprime(oo)
0

The Airy function obeys the mirror symmetry:

>>> from sympy import conjugate
>>> conjugate(airyaiprime(z))
airyaiprime(conjugate(z))

Differentiation with respect to $z$ is supported:

>>> from sympy import diff
>>> diff(airyaiprime(z), z)
z*airyai(z)
>>> diff(airyaiprime(z), z, 2)
z*airyaiprime(z) + airyai(z)

Series expansion is also supported:

>>> from sympy import series
>>> series(airyaiprime(z), z, 0, 3)
-3**(2/3)/(3*gamma(1/3)) + 3**(1/3)*z**2/(6*gamma(2/3)) + O(z**3)

We can numerically evaluate the Airy function to arbitrary precision
on the whole complex plane:

>>> airyaiprime(-2).evalf(50)
0.61825902074169104140626429133247528291577794512415

Rewrite $\operatorname{Ai}^\prime(z)$ in terms of hypergeometric functions:

>>> from sympy import hyper
>>> airyaiprime(z).rewrite(hyper)
3**(1/3)*z**2*hyper((), (5/3,), z**3/9)/(6*gamma(2/3)) - 3**(2/3)*hyper((), (1/3,), z**3/9)/(3*gamma(1/3))

See Also
========

airyai: Airy function of the first kind.
airybi: Airy function of the second kind.
airybiprime: Derivative of the Airy function of the second kind.

References
==========

.. [1] https://en.wikipedia.org/wiki/Airy_function
.. [2] https://dlmf.nist.gov/9
.. [3] https://encyclopediaofmath.org/wiki/Airy_functions
.. [4] https://mathworld.wolfram.com/AiryFunctions.html

Tc                ób  € VP                   '       dI   V\        P                  J d   \        P                  # V\        P                  J d   \        P                  # VP
                  '       dC   \        P                  ^\        ^^4      ,          \        \        ^^4      4      ,          ,          # R# rÇ  )	rÉ  r   rŠ   r‹   r‡   rc   rŽ   r   r'   rÊ  s   &&r5   rD   Úairyaiprime.eval  sl   € à�=�=ˆ=Ø”a—e‘e‹|Ü—u‘u�ØœŸ
™
Ó"Ü—v‘v�à�;�;ˆ;Ü—=‘= A¤x°°1£~Õ$5¼¼hÀqÈ!»nÓ8MÕ$MÕNÐNñ r9   c                óŽ   € V^8X  d5   V P                   ^ ,          \        V P                   ^ ,          4      ,          # \        W4      hrj   )r2   rÅ  r
   rL   s   &&r5   rN   Úairyaiprime.fdiff  ó4   € Ø�qŒ=Ø—9‘9˜Q•<¤ t§y¡y°¥|Ó 4Õ4Ð4ä$ TÓ4Ð4r9   c                ó  € V P                   ^ ,          P                  V4      p\        V4      ;_uu_ 4        \        P                  ! V^R7      pRRR4       \
        P                  ! XV4      #   + '       g   i     L'; i©r   )Ú
derivativeN)r2   r§  r-   r,   rÅ  r   r¦  ©r4   rf  rC   Úress   &&  r5   rd  Úairyaiprime._eval_evalf!  óS   € Ø�I‰I�a�L×#Ñ# DÓ)ˆÜ�d�^�^Ü—)’)˜A¨!Ô,ˆC÷ ä× Ò   dÓ+Ð+÷ �^úó   ¶A.Á.A>	c                óò   € \        ^^4      p\        V) \        ^^4      4      p\        V4      P                  '       d9   V^,          \	        V) W4,          4      \	        W3V,          4      ,
          ,          # R# ©rH   N)r   r   r#   ro   r]   ©r4   rC   rv   rÛ  rf   s   &&,  r5   rÖ   Ú$airyaiprime._eval_rewrite_as_besselj'  s^   € Ü�a˜‹^ˆÜ��”H˜Q “NÓ#ˆÜˆa‹5××ÐØ�Q•3œ' 2 # r¥tÓ,¬w°r¸a½4Ó/@Õ@ÕAÐAñ r9   c                óê  € \        ^^4      p\        ^^4      pV\        V\        ^^4      4      ,          p\        V4      P                  '       d,   V^,          \	        WE4      \	        V) V4      ,
          ,          # \        V\        ^^4      4      p\        WT4      p\        WT) 4      pW1^,          V,          \	        WDV,          4      ,          V\	        V) WE,          4      ,          ,
          ,          # rj   )r   r   r#   rm   r^   r  s   &&,     r5   r˜   Ú$airyaiprime._eval_rewrite_as_besseli-  s¹   € Ü�a˜‹^ˆÜ�a˜‹^ˆØ”�Qœ  A›Ó'Õ'ˆÜˆa‹5××ÐØ�Q•3œ' "›.¬7°B°3¸«?Õ:Õ;Ð;ä�A”x  1“~Ó&ˆAÜ�A“
ˆAÜ�A�s“ˆAØ˜A�˜a�¤¨¨q­DÓ 1Õ1°A´g¸r¸cÀ2Å4Ó6HÕ4HÕHÕIÐIr9   c           	     óž  € V^,          ^^\        ^^4      ,          ,          \        \        ^^4      4      ,          ,          p^\        ^^4      \        \        ^^4      4      ,          ,          pV\        . \        ^^4      .V^,          ^	,          4      ,          V\        . \        ^^4      .V^,          ^	,          4      ,          ,
          # rG   )r   r'   r!   r*   râ  s   &&,  r5   rå  Ú"airyaiprime._eval_rewrite_as_hyper9  s    € Ø��d�a˜œ8 A q›>Õ)Õ)¬%´¸¸A³Ó*?Õ?Õ@ˆØ”4˜˜1“:œe¤H¨Q°£NÓ3Õ3Õ4ˆØ”U˜2¤¨¨A£Ð/°°Aµ°aµÓ8Õ8¸3ÄÀrÌHÐUVÐXYËNÐK[Ð]^Ð`aÕ]aÐbcÕ]cÓAdÕ;dÕdÐdr9   c                ót  € V P                   ^ ,          pVP                  p\        V4      ^8X  Edˆ   VP                  4       p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      pVP                  WVWH,          ,          V,          ,          4      p	V	Ee   W—,          p^V,          P                  '       dë   W•,          pW–,          pW˜,          pWg,          WHV,          ,          ,          WdV,          ,          V,          ,          p
WVV,          ,          WHV,          ,          ,          p\        P                  V
\        P                  ,           \        V4      ,          V
\        P                  ,
          \        ^4      ,          \        V4      ,          ,           ,          # R# R# R# rè  )r2   rì  rÑ  rí  r   rî  r[   r   rŸ   r†   rÍ  r    rþ  rð  s   &,          r5   rn   Úairyaiprime._eval_expand_func>  s@  € Ø�i‰i˜�lˆØ× Ñ ˆäˆu‹:˜�?Ø—	‘	“ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAØ—	‘	˜!˜q�t�V a�K�-Ó(ˆAØ‹}Ø•D�ð
 �a•C×#×#Ð#Ø��AØ��AØ��AØ�$  q¥S¥�/¨a°Qµ$­h¸­]Õ:�BØ A¥�X¨¨a­C­Õ0�FÜŸ6™6 b¬1¯5©5¥j´+¸fÓ2EÕ%EÈÌaÏeÉeÍÔUYÐZ[ÓU\ÕH\Ô]hÐioÓ]pÕHpÕ%pÕqÐqñ $ñ ñ r9   r?   Nrj   ©ry   rz   r{   r|   r}   r÷  rø  r   rD   rN   rd  rÖ   r˜   rå  rn   r€   r�   r‚   s   @r5   rÍ  rÍ  »  sT   ø‡ € ñOðb €EØ€JàñOó ðOô5ò,òBò
Jòe÷
rð rr9   rÍ  c                   ód   a € ] tR tRt o Rt^tRt]R 4       tRR lt	R t
R tR tR	 tR
 tRtV tR# )rþ  iX  aR  
The derivative $\operatorname{Bi}^\prime$ of the Airy function of the first
kind.

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

The Airy function $\operatorname{Bi}^\prime(z)$ is defined to be the
function

.. math::
    \operatorname{Bi}^\prime(z) := \frac{\mathrm{d} \operatorname{Bi}(z)}{\mathrm{d} z}.

Examples
========

Create an Airy function object:

>>> from sympy import airybiprime
>>> from sympy.abc import z

>>> airybiprime(z)
airybiprime(z)

Several special values are known:

>>> airybiprime(0)
3**(1/6)/gamma(1/3)
>>> from sympy import oo
>>> airybiprime(oo)
oo
>>> airybiprime(-oo)
0

The Airy function obeys the mirror symmetry:

>>> from sympy import conjugate
>>> conjugate(airybiprime(z))
airybiprime(conjugate(z))

Differentiation with respect to $z$ is supported:

>>> from sympy import diff
>>> diff(airybiprime(z), z)
z*airybi(z)
>>> diff(airybiprime(z), z, 2)
z*airybiprime(z) + airybi(z)

Series expansion is also supported:

>>> from sympy import series
>>> series(airybiprime(z), z, 0, 3)
3**(1/6)/gamma(1/3) + 3**(5/6)*z**2/(6*gamma(2/3)) + O(z**3)

We can numerically evaluate the Airy function to arbitrary precision
on the whole complex plane:

>>> airybiprime(-2).evalf(50)
0.27879516692116952268509756941098324140300059345163

Rewrite $\operatorname{Bi}^\prime(z)$ in terms of hypergeometric functions:

>>> from sympy import hyper
>>> airybiprime(z).rewrite(hyper)
3**(5/6)*z**2*hyper((), (5/3,), z**3/9)/(6*gamma(2/3)) + 3**(1/6)*hyper((), (1/3,), z**3/9)/gamma(1/3)

See Also
========

airyai: Airy function of the first kind.
airybi: Airy function of the second kind.
airyaiprime: Derivative of the Airy function of the first kind.

References
==========

.. [1] https://en.wikipedia.org/wiki/Airy_function
.. [2] https://dlmf.nist.gov/9
.. [3] https://encyclopediaofmath.org/wiki/Airy_functions
.. [4] https://mathworld.wolfram.com/AiryFunctions.html

Tc                óþ  € VP                   '       d¬   V\        P                  J d   \        P                  # V\        P                  J d   \        P                  # V\        P                  J d   \        P
                  # VP                  '       d.   ^\        ^^4      ,          \        \        ^^4      4      ,          # VP                  '       d.   ^\        ^^4      ,          \        \        ^^4      4      ,          # R# rÇ  )	rÉ  r   rŠ   r‹   rŒ   r‡   rc   r   r'   rÊ  s   &&r5   rD   Úairybiprime.eval¯  s¥   € à�=�=ˆ=Ø”a—e‘e‹|Ü—u‘u�ØœŸ
™
Ó"Ü—z‘zÐ!Øœ×*Ñ*Ó*Ü—v‘v�Ø——�Øœ( 1 a›.Õ(¬5´¸!¸Q³Ó+@Õ@Ð@à�;�;ˆ;Ø”h˜q !“nÕ$¤u¬X°a¸«^Ó'<Õ<Ð<ñ r9   c                óŽ   € V^8X  d5   V P                   ^ ,          \        V P                   ^ ,          4      ,          # \        W4      hrj   )r2   rï  r
   rL   s   &&r5   rN   Úairybiprime.fdiff¿  r  r9   c                ó  € V P                   ^ ,          P                  V4      p\        V4      ;_uu_ 4        \        P                  ! V^R7      pRRR4       \
        P                  ! XV4      #   + '       g   i     L'; ir  )r2   r§  r-   r,   rï  r   r¦  r  s   &&  r5   rd  Úairybiprime._eval_evalfÅ  r  r  c                óú   € \        ^^4      pV\        V) \        ^^4      4      ,          p\        V4      P                  '       d6   V) \	        ^4      ,          \        V) V4      \        W44      ,           ,          # R# r  rØ  r  s   &&,  r5   rÖ   Ú$airybiprime._eval_rewrite_as_besseljË  sa   € Ü�a˜‹^ˆØ”�a�Rœ ! Q›Ó(Õ(ˆÜˆa‹5××ÐØ�2”d˜1“g•:¤¨"¨¨a£´7¸2³>Õ!AÕBÐBñ r9   c                ó  € \        ^^4      p\        ^^4      pV\        V\        ^^4      4      ,          p\        V4      P                  '       d5   V\	        ^4      ,          \        V) V4      \        WE4      ,           ,          # \        V\        ^^4      4      p\        WT4      p\        WT) 4      p\	        V4      V\        V) WE,          4      ,          V^,          V,          \        WDV,          4      ,          ,           ,          # rj   rÞ  r  s   &&,     r5   r˜   Ú$airybiprime._eval_rewrite_as_besseliÑ  sÃ   € Ü�a˜‹^ˆÜ�a˜‹^ˆØ”�Qœ  A›Ó'Õ'ˆÜˆa‹5××ÐØ”T˜!“W•9¤¨¨¨Q£´'¸"³.Õ @ÕAÐAä�A”x  1“~Ó&ˆAÜ�A“
ˆAÜ�A�s“ˆAÜ˜“8˜q¤¨"¨¨b­dÓ!3Õ3°a¸µd¸1µf¼WÀRÈAÍÓ=NÕ6NÕNÕOÐOr9   c           	     ó‚  € V^,          ^\        ^^4      ,          \        \        ^^4      4      ,          ,          p\        ^^4      \        \        ^^4      4      ,          pV\        . \        ^^4      .V^,          ^	,          4      ,          V\        . \        ^^4      .V^,          ^	,          4      ,          ,           # rG   )r!   r'   r   r*   râ  s   &&,  r5   rå  Ú"airybiprime._eval_rewrite_as_hyperÝ  s•   € Ø��d�aœ˜Q ›
•l¤5¬°!°Q«Ó#8Õ8Õ9ˆÜ�1�a‹jœ5¤¨!¨Q£Ó0Õ0ˆØ”U˜2¤¨¨A£Ð/°°Aµ°aµÓ8Õ8¸3ÄÀrÌHÐUVÐXYËNÐK[Ð]^Ð`aÕ]aÐbcÕ]cÓAdÕ;dÕdÐdr9   c                ót  € V P                   ^ ,          pVP                  p\        V4      ^8X  Edˆ   VP                  4       p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      p\	        RV.R7      pVP                  WVWH,          ,          V,          ,          4      p	V	Ee   W—,          p^V,          P                  '       dë   W•,          pW–,          pW˜,          pWg,          WHV,          ,          ,          WdV,          ,          V,          ,          p
WVV,          ,          WHV,          ,          ,          p\        P                  \        ^4      V
\        P                  ,
          ,          \        V4      ,          V
\        P                  ,           \        V4      ,          ,           ,          # R# R# R# rè  )r2   rì  rÑ  rí  r   rî  r[   r   rŸ   r    r†   rÍ  rþ  rð  s   &,          r5   rn   Úairybiprime._eval_expand_funcâ  sB  € Ø�i‰i˜�lˆØ× Ñ ˆäˆu‹:˜�?Ø—	‘	“ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAÜ�S 1 #Ô&ˆAØ—	‘	˜!˜q�t�V a�K�-Ó(ˆAØ‹}Ø•D�ð
 �a•C×#×#Ð#Ø��AØ��AØ��AØ�$  q¥S¥�/¨a°Qµ$­h¸­]Õ:�BØ A¥�X¨¨a­C­Õ0�FÜŸ6™6¤T¨!£W¨b´1·5±5­jÕ%9¼+ÀfÓ:MÕ%MÐQSÔVW×V[ÑV[ÕQ[Ô]hÐioÓ]pÕPpÕ%pÕqÐqñ $ñ ñ r9   r?   Nrj   r#  r‚   s   @r5   rþ  rþ  X  sR   ø‡ € ñQðf €EØ€Jàñ=ó ð=ô5ò,òCò
Pòe÷
rð rr9   rþ  c                   óV   a € ] tR tRt o Rt]R 4       tRR ltR tR t	R t
R tR	tV tR
# )Úmarcumqiü  a  
The Marcum Q-function.

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

The Marcum Q-function is defined by the meromorphic continuation of

.. math::
    Q_m(a, b) = a^{- m + 1} \int_{b}^{\infty} x^{m} e^{- \frac{a^{2}}{2} - \frac{x^{2}}{2}} I_{m - 1}\left(a x\right)\, dx

Examples
========

>>> from sympy import marcumq
>>> from sympy.abc import m, a, b
>>> marcumq(m, a, b)
marcumq(m, a, b)

Special values:

>>> marcumq(m, 0, b)
uppergamma(m, b**2/2)/gamma(m)
>>> marcumq(0, 0, 0)
0
>>> marcumq(0, a, 0)
1 - exp(-a**2/2)
>>> marcumq(1, a, a)
1/2 + exp(-a**2)*besseli(0, a**2)/2
>>> marcumq(2, a, a)
1/2 + exp(-a**2)*besseli(0, a**2)/2 + exp(-a**2)*besseli(1, a**2)

Differentiation with respect to $a$ and $b$ is supported:

>>> from sympy import diff
>>> diff(marcumq(m, a, b), a)
a*(-marcumq(m, a, b) + marcumq(m + 1, a, b))
>>> diff(marcumq(m, a, b), b)
-a**(1 - m)*b**m*exp(-a**2/2 - b**2/2)*besseli(m - 1, a*b)

References
==========

.. [1] https://en.wikipedia.org/wiki/Marcum_Q-function
.. [2] https://mathworld.wolfram.com/MarcumQ-Function.html

c                óP  € V\         P                  J dp   V\         P                  J d%   V\         P                  J d   \         P                  # \        W^,          \         P                  ,          4      \	        V4      ,          # V\         P                  J dJ   V\         P                  J d6   ^^\        V^,          \         P                  ,          4      ,          ,
          # W#8X  dè   V\         P                  J dH   ^\        V^,          ) 4      \        ^ V^,          4      ,          ,           \         P                  ,          # V^8X  d†   \         P                  \         P                  \        V^,          ) 4      ,          \        ^ V^,          4      ,          ,           \        V^,          ) 4      \        ^V^,          4      ,          ,           # VP                  '       dl   VP                  '       d#   VP                  '       d   \         P                  # \        W^,          \         P                  ,          4      \	        V4      ,          # VP                  '       dJ   VP                  '       d6   ^^\        V^,          \         P                  ,          4      ,          ,
          # R# R# r  )	r   r‡   r)   rŸ   r'   r   r†   r^   rc   )rA   rë  rf   rî   s   &&&&r5   rD   Úmarcumq.eval-  s™  € à”—‘‹;Ø”A—F‘F‹{˜q¤A§F¡F›{Ü—v‘v�Ü˜a A¥¬¯©¥Ó/´%¸³(Õ:Ð:à”—‘‹;˜1¤§¡›;Ø�qœ3˜q !�t¤a§f¡f�}Ó-Õ-Õ-Ð-àŒ6Ø”A—E‘E‹zØœC  A¥ ›J¬°°A°qµDÓ)9Õ9Õ9¼1¿6¹6ÕAÐAØ�AŒvÜ—v‘v¤§¡¬¨a°­d¨U«Õ 3´g¸aÀÀAÅÓ6FÕ FÕFÌÈaÐQRÍdÈUËÔV]Ð^_ÐabÐdeÕaeÓVfÕIfÕfÐfà�9�9ˆ9Ø�y�yˆy˜QŸYŸY˜YÜ—v‘v�Ü˜a A¥¤a§f¡f¥Ó-´°a³Õ8Ð8à�9�9ˆ9˜ŸŸ˜Ø�qœ3˜q !�t¤A§F¡F�{Ó+Õ+Õ+Ð+ñ #‰9r9   c                óz  € V P                   w  r#pV^8X  d-   V\        W#V4      ) \        ^V,           W44      ,           ,          # V^8X  di   WB,          ) W2^,
          ,          ,          \        V^,          V^,          ,           ) ^,          4      ,          \        V^,
          W4,          4      ,          # \	        W4      hrG   )r2   r4  r   r^   r
   )r4   rM   rë  rf   rî   s   &&   r5   rN   Úmarcumq.fdiffE  s‘   € Ø—)‘)‰ˆˆaØ�qŒ=Øœ  qÓ)Ð)¬G°A°aµC¸Ó,>Õ>Õ?Ð?Ø˜Œ]Ø•T�E˜A !¥�HÕ$¬¨a°­d°Q¸µT­k¨N¸1Õ,<Ó(=Õ=ÄÈÈ!ÍÈQÍSÓ@QÕQÐQä$ TÓ4Ð4r9   c           	     óh  € ^ RI Hp VP                  R\        \	        R4      P
                  4      4      pV^V,
          ,          V! Wa,          \        V^,          V^,          ,           ) ^,          4      ,          \        V^,
          W&,          4      ,          Wc\        P                  .4      ,          # )r   )ÚIntegralre   )
Úsympy.integrals.integralsr:  Úgetr   r   Únamer   r^   r   r‹   )r4   rë  rf   rî   rv   r:  re   s   &&&&,  r5   Ú_eval_rewrite_as_IntegralÚ!marcumq._eval_rewrite_as_IntegralN  s„   € Ý6Ø�J‰J�sœEÔ"7¸Ó"<×"AÑ"AÓBÓCˆØ�Q˜•U�|Ù˜�œs Q¨¥T¨A¨q­D¥[ >°!Õ#3Ó4Õ4´w¸qÀ½sÀAÅCÓ7HÕHÈ1ÔQR×Q[ÑQ[ÐJ\Ó]õ^ð 	^r9   c           	     ó(  € ^ RI Hp VP                  R\        R4      4      p\	        V^,          V^,          ,           ) ^,          4      V! W#,          V,          \        WbV,          4      ,          V^V,
          \        P                  .4      ,          # )r   )ÚSumrÍ   )Úsympy.concrete.summationsrA  r<  r   r   r^   r   r‹   )r4   rë  rf   rî   rv   rA  rÍ   s   &&&&,  r5   Ú_eval_rewrite_as_SumÚmarcumq._eval_rewrite_as_SumT  sh   € Ý1Ø�J‰J�sœE #›JÓ'ˆÜ�Q˜•T˜A˜q�D•[�> AÕ%Ó&©¨a­c°A­X¼ÀÀQÅ3»Õ-GÈ!ÈQÈqÍSÔRS×R\ÑR\ÐI]Ó)^Õ^Ð^r9   c                óÚ  a€ SV8X  dã   V^8X  d:   ^\        S^,          ) 4      \        ^ S^,          4      ,          ,           ^,          # VP                  '       d�   V^8¼  d†   \        V3R l\	        ^V4       4       4      p\
        P                  \        S^,          ) 4      \        ^ S^,          4      ,          ^,          ,           \        S^,          ) 4      V,          ,           # R# R# R# )rk   c              3   óJ   <"  € T F  p\        VS^,          4      x € K  	  R# 5ir  )r^   )Ú.0r°  rf   s   & €r5   Ú	<genexpr>Ú3marcumq._eval_rewrite_as_besseli.<locals>.<genexpr>^  s   øé € Ð>±+¨Qœ  1 a¥4×(Ð(³+ùs   ƒ #N)r   r^   rM  ÚsumrÃ   r   rŸ   )r4   rë  rf   rî   rv   rÌ   s   &&f&, r5   r˜   Ú marcumq._eval_rewrite_as_besseliY  s®   ø€ Ø�Œ6Ø�AŒvØœC  A¥ ›J¬°°A°qµDÓ)9Õ9Õ9¸QÕ>Ð>Ø�|�|ˆ|  Q¤ÜÔ>´%¸¸1´+Ó>Ó>�Ü—v‘v¤ Q¨¥T E£
¬W°Q¸¸1½Ó-=Õ =ÀÕ AÕAÄCÈÈAÍÈÃJÐQRÅNÕRÐRñ !'‰|ñ r9   c                ó¦   € \         ;QJ d&    R  V P                   4       F  '       d   K   RM	  RM! R  V P                   4       4      '       d   R# R# )c              3   ó8   "  € T F  qP                   x € K  	  R # 5ir>   )rc   )rG  r­   s   & r5   rH  Ú(marcumq._eval_is_zero.<locals>.<genexpr>b  s   é € Ð0¡i˜s�{Ž{£iùs   ‚FTN)Úallr2   r3   s   &r5   Ú_eval_is_zeroÚmarcumq._eval_is_zeroa  s3   € ß‹3Ñ0 d§i¢iÓ0�3�3Š3Ñ0 d§i¢iÓ0×0Ò0Ùñ 1r9   r?   NrG   )ry   rz   r{   r|   r}   r   rD   rN   r>  rC  r˜   rP  r€   r�   r‚   s   @r5   r4  r4  ü  s@   ø‡ € ñ.ð` ñ,ó ð,ô.5ò^ò_ò
S÷ð r9   r4  c                   óL   a a€ ] tR tRt oRtV 3R ltR tRV 3R lltRtVt	V ;t
# )r÷   ie  ze
Helper function to make the $\mathrm{besseli}(nu, z)$
function tractable for the Gruntz algorithm.

c           
     ó¶  <€ ^ RI Hp ^ RIHp V^,          pV\        P
                  \        P                  39   Ed
   V P                  w  r‰\        V4       U
u. uFŽ  p
V! \        ^V,          ^,
          ^4      V
4      V! \        ^V,          ^,           ^4      V
4      ,          ^V
,          V	\        ^V
,          ^,           ^4      ,          ,          \        V
4      ,          ,          NK�  	  pp
\        \        ^,          4      \        V!  ,          V! ^V	\        ^V,          ^,           ^4      ,          ,          V4      ,           # \        SV `=  WW44      # u up
i r
  ©r  r   r¾   r½   r   r‹   rŒ   r2   rÃ   r   r   r    r   r   rª   r  ©r4   r“   r  re   r¥   r   r½   r  rB   rC   rÍ   r®  rJ   s   &&&&&       €r5   r  Ú_besseli._eval_aseriesl  s  ø€ ÝLÝ,Ø�a•ˆà”Q—Z‘Z¤×!3Ñ!3Ð4Õ4Ø—I‘I‰EˆBäkpÐqrÔksóuÙksÐfgñ #¤8¨A¨b­D°1­H°aÓ#8¸!Ó<¹_Ü˜Q˜r�T A�X qÓ)¨1ó>.õ .Ø12°aµ¸¼XÀaÈÅcÈAÅgÈqÓ=QÕ9RÕ0RÔS\Ð]^ÓS_Õ0_÷að aÙksð ð uäœ˜A�“<¤ a¡Õ)©E°!°A¼ÀÀ1ÅÀqÅÈ!Ó8LÕ4MÕ2MÈqÓ,QÕQÐQä‰wÑ$ Q¨qÓ7Ð7ùò	uó   ÁBEc                ó:   € \        V) 4      \        W4      ,          # r>   )r   r^   r—   s   &&&,r5   Ú_eval_rewrite_as_intractableÚ%_besseli._eval_rewrite_as_intractabley  s   € Ü�A�2‹w”w˜r“~Õ%Ð%r9   c                óæ   <€ V P                   ^ ,          P                  V^ 4      pVP                  '       d-   V P                  ! V P                   !  pVP	                  WV4      # \
        SV `  WV4      # rÏ   ©r2   Úlimitrc   rY  rÁ   rª   ©r4   re   r“   r¥   r¦   Úx0rq   rJ   s   &&&&&  €r5   rÁ   Ú_besseli._eval_nseries|  ó]   ø€ Ø�Y‰Y�q�\×Ñ  1Ó%ˆØ�:�:ˆ:Ø×1Ò1°4·9±9Ñ=ˆAØ—?‘? 1¨Ó.Ð.Ü‰wÑ$ Q¨4Ó0Ð0r9   r?   rÏ   ©ry   rz   r{   r|   r}   r  rY  rÁ   r€   r�   rÐ   rÑ   s   @@r5   r÷   r÷   e  s   ù‡ € ñõ8ò&÷1÷ 1r9   r÷   c                   óL   a a€ ] tR tRt oRtV 3R ltR tRV 3R lltRtVt	V ;t
# )r$  i„  ze
Helper function to make the $\mathrm{besselk}(nu, z)$
function tractable for the Gruntz algorithm.

c           
     ó¶  <€ ^ RI Hp ^ RIHp V^,          pV\        P
                  \        P                  39   Ed
   V P                  w  r‰\        V4       U
u. uFŽ  p
V! \        ^V,          ^,
          ^4      V
4      V! \        ^V,          ^,           ^4      V
4      ,          RV
,          V	\        ^V
,          ^,           ^4      ,          ,          \        V
4      ,          ,          NK�  	  pp
\        \        ^,          4      \        V!  ,          V! ^V	\        ^V,          ^,           ^4      ,          ,          V4      ,           # \        SV `=  WW44      # u up
i r0  rT  rU  s   &&&&&       €r5   r  Ú_besselk._eval_aseries‹  s   ø€ ÝLÝ,Ø�a•ˆà”Q—Z‘Z¤×!3Ñ!3Ð4Õ4Ø—I‘I‰EˆBälqÐrsÔltóvÙltÐghñ #¤8¨A¨b­D°1­H°aÓ#8¸!Ó<¹_Ü˜Q˜r�T A�X qÓ)¨1ó>.õ .Ø13°qµ	¸!¼hÀqÈÅsÈQÅwÐPQÓ>RÕ:SÕ0SÔT]Ð^_ÓT`Õ0`÷bð bÙltð ð väœ˜A�“<¤ a¡Õ)©E°!°A¼ÀÀ1ÅÀqÅÈ!Ó8LÕ4MÕ2MÈqÓ,QÕQÐQä‰wÑ$ Q¨qÓ7Ð7ùò	vrW  c                ó8   € \        V4      \        W4      ,          # r>   )r   r  r—   s   &&&,r5   rY  Ú%_besselk._eval_rewrite_as_intractable˜  s   € Ü�1‹v”g˜b“nÕ$Ð$r9   c                óæ   <€ V P                   ^ ,          P                  V^ 4      pVP                  '       d-   V P                  ! V P                   !  pVP	                  WV4      # \
        SV `  WV4      # rÏ   r\  r^  s   &&&&&  €r5   rÁ   Ú_besselk._eval_nseries›  ra  r9   r?   rÏ   rb  rÑ   s   @@r5   r$  r$  „  s   ù‡ € ñõ8ò%÷1÷ 1r9   r$  N)r’  é   )XÚ	functoolsr   Ú
sympy.corer   Úsympy.core.addr   Úsympy.core.cacher   Úsympy.core.exprr   Úsympy.core.functionr	   r
   r   Úsympy.core.logicr   r   Úsympy.core.numbersr   r   r   Úsympy.core.powerr   Úsympy.core.symbolr   r   r   Úsympy.core.sympifyr   r  r   r   Ú(sympy.functions.elementary.trigonometricr   r   r   r   Ú#sympy.functions.elementary.integersr   Ú&sympy.functions.elementary.exponentialr   r   Ú(sympy.functions.elementary.miscellaneousr   r    r!   Ú$sympy.functions.elementary.complexesr"   r#   r$   r%   r&   Ú'sympy.functions.special.gamma_functionsr'   r(   r)   Úsympy.functions.special.hyperr*   Úsympy.polys.orthopolysr+   r¤  r,   r-   r/   r]   r›   r^   r  r4  r6  rB  rD  rS  rU  ra   rb   ru  r_   r`   r±  r³  rÅ  rï  rÍ  rþ  r4  r÷   r$  r?   r9   r5   Ú<module>r~     s¨  ðÝ å Ý Ý $Ý  ß MÑ Mß 0ß .Ñ .Ý  ß @Ñ @Ý &ß Oß GÓ GÝ 7ß ;ß EÑ Eß VÕ Vß NÑ NÝ /Ý 6ç ôC �ô C ôLmDˆjô mDô`YDˆjô YDôxf8ˆjô f8ôR~8ˆjô ~8ôB+Bˆjô +Bô\,Bˆjô ,Bò^ô2˜*ô 2ò8Jò
.ôU;Ð	ô U;ôp?;Ð	ô ?;ôD6;Ð-ô 6;ôr5-Ð
ô 5-ôp5-Ð
ô 5-ôpQôh#ˆô #ô6ihˆXô ihôXnhˆXô nhôbZr�(ô Zrôzar�(ô arôHgˆoô gôR1ˆô 1ô>1ˆö 1r9   