+
    iK+                         ^ RI HtHtHtHtHtHtHt ^ RIH	t	H
t
HtHtHt ^RIHt R t]R 4       t]! R4      tRR ltR tR	 tR
# )    )cacheitDummyNeIntegerRationalSWild)binomialsincos	PiecewiseAbs)	integratec                 "    \        V \        4      # )N)
isinstancer   )ns   &|/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/sympy/integrals/trigonometry.py_integer_instancer      s    a!!    c           	          \        R V .R7      pR Uu. uF  p\        W .\        .R7      NK  	  upw  r4\        W,          4      V,          \        W,          4      V,          ,          pWQW43# u upi )a)excludenm)r   
properties)r	   r   r   r   )xr   sr   mpats   &     r   _pat_sincosr      si    S1#AA C->,?@DA
ac(A+AC!
#C1<s   A-uc                   \        V4      w  r4rVV P                  R4      p V P                  V4      pVf   R# Wu,          Wv,          reVP                  '       d   VP                  '       d   V# VP                  '       d   TM\        P
                  pWt,          pVP                  '       g   VP                  '       EdZ   \        p	VP                  VP                  rV
'       dP   V'       dH   V^ 8  d   V^ 8  d   RpRp
M4V^ 8  d   V^ 8  d   Rp
RpM!V^ 8  d   V^ 8  d   WV8  p
WV8  * pM	WV8  p
WV8  * pV
'       dF   ^V	^,          ,
          V^,
          ^,          ,          ) W,          ,          p\        WA,          4      pMKV'       dD   W,          ^V	^,          ,
          V^,
          ^,          ,          ,          p\        WA,          4      p\        XV	4      pVP                  V	X4      pVR8X  d!   \        W,          \        V^ 4      3VR34      # W,          # \        V4      \        V4      8  p
\        V4      \        V4      8  p\        P
                  pV
'       EdJ   V^ 8  dy   \        ^ V^,          ^,           4       FX  pV\        P                   V,          \#        V^,          V4      ,          \%        V^V,          ,           V4      ,          ,          pKZ  	  EMV^ 8X  d   \%        WQ4      pEM\'        RV^,           4      \        V4      V^,           ,          ,          \        V4      V^,
          ,          ,          \'        V^,
          V^,           4      \)        \        V4      V^,           ,          \        V4      V^,
          ,          ,          V4      ,          ,           pEM
V'       EdJ   V^ 8  dy   \        ^ V^,          ^,           4       FX  pV\        P                   V,          \#        V^,          V4      ,          \+        V^V,          ,           V4      ,          ,          pKZ  	  EMV^ 8X  d   \+        Wa4      pEMn\'        ^V^,           4      \        V4      V^,
          ,          ,          \        V4      V^,           ,          ,          \'        V^,
          V^,           4      \)        \        V4      V^,
          ,          \        V4      V^,           ,          ,          V4      ,          ,           pEMWe8X  d;   \        \        ^V,          4      \        P,                  ,          V,          V4      pEMxWe) 8X  Edq   V^ 8  d   \'        ^V^,           4      \        V4      V^,
          ,          ,          \        V4      V^,           ,          ,          \'        V^,
          V^,           4      \        \        V4      V^,
          ,          \        V4      V^,           ,          ,          V4      ,          ,           pM\'        RV^,           4      \        V4      V^,           ,          ,          \        V4      V^,
          ,          ,          \'        V^,
          V^,           4      \        \        V4      V^,           ,          \        V4      V^,
          ,          ,          V4      ,          ,           pVR8X  d8   \        VP                  WV,          4      V,          \        V^ 4      3VR34      # VP                  WV,          4      V,          # )a\  
Integrate f = Mul(trig) over x.

Examples
========

>>> from sympy import sin, cos, tan, sec
>>> from sympy.integrals.trigonometry import trigintegrate
>>> from sympy.abc import x

>>> trigintegrate(sin(x)*cos(x), x)
sin(x)**2/2

>>> trigintegrate(sin(x)**2, x)
x/2 - sin(x)*cos(x)/2

>>> trigintegrate(tan(x)*sec(x), x)
1/cos(x)

>>> trigintegrate(sin(x)*tan(x), x)
-log(sin(x) - 1)/2 + log(sin(x) + 1)/2 - sin(x)

References
==========

.. [1] https://en.wikibooks.org/wiki/Calculus/Integration_techniques

See Also
========

sympy.integrals.integrals.Integral.doit
sympy.integrals.integrals.Integral
sincosNTF	piecewise)r   rewritematchis_zeror   Zerois_odd_ur   r   r   subsr   r   r   rangeNegativeOner
   _sin_pow_integrater   trigintegrate_cos_pow_integrateHalf)fr   condsr   r   r   r   Mzzr    n_m_ffuufifxresis   &&&               r   r/   r/      s/   D q>LCA			(A	Ay4qyyyQYYYiiiQVVB	Axxx1888188B " 1uQQ1q5 a%AEU[ e[ q!t8Aqy))AD0BQSB QTa!eQY//BQSBr1WWQ^KbfbAh/"d<<v" a&3q6/B
a&3q6/B
&&C	r q51adQh'q(8AqD!+<<*1qs7A67 8 ( !V$Q*C& BA&Q!a%83q6AE?JAE1q5) Q!a%Q!a%!@!DEEC 
 q5 1adQh'q(8AqD!+<<*1qs7A67 8 ( !V %Q*C& Aq1u%AQ7AQGAE1q5) Q!a%Q!a%!@!DEEC
 6S1Xaff_q0!4C2g1u
  1q5)CFQUO;c!fq1uoMAq1u- Q!a%3q6AE?!BAFGG  AE*SVa!e_<s1vANAq1u- Q!a%Q!a%!@!DEE #((1c*Q.1a9B:FF88Asar   c                 R   V ^ 8  d~   V ^8X  d   \        V4      ) # \        RV 4      \        V4      ,          \        V4      V ^,
          ,          ,          \        V ^,
          V 4      \        V ^,
          V4      ,          ,           # V ^ 8  d   V R8X  d   \	        ^\        V4      ,          V4      # \        ^V ^,           4      \        V4      ,          \        V4      V ^,           ,          ,          \        V ^,           V ^,           4      \        V ^,           V4      ,          ,           # V# r   r$   )r   r   r   r.   r/   r   r   s   &&r   r.   r.      s    1u6F7N Q#a&(3q6AE?:Q"%7Aq%AAB 	C 	1u7 !3q61-- AE"SV+c!fq1uo=QA&);AE1)EEF 	G r   c                 P   V ^ 8  d}   V ^8X  d   \        V4      # \        ^V 4      \        V4      ,          \        V4      V ^,
          ,          ,          \        V ^,
          V 4      \        V ^,
          V4      ,          ,           # V ^ 8  d   V R8X  d   \	        ^\        V4      ,          V4      # \        RV ^,           4      \        V4      ,          \        V4      V ^,           ,          ,          \        V ^,           V ^,           4      \        V ^,           V4      ,          ,           # V# r?   )r   r   r   r0   r/   r@   s   &&r   r0   r0   (  s    1u6q6M AQ'#a&1q5/9Q"%7Aq%AAB 	C 	1u7 3q61-- QU#c!f,s1vA>QA&);AE1)EEF 	G
 r   N)r#   )
sympy.corer   r   r   r   r   r   r	   sympy.functionsr
   r   r   r   r   	integralsr   r   r   r*   r/   r.   r0    r   r   <module>rF      sM    E E E > >  " 	 	 3Z[ |*Z'r   