Optimal. Leaf size=9 \[ \frac {\sin (x)}{1+\cos (x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2727}
\begin {gather*} \frac {\sin (x)}{\cos (x)+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2727
Rubi steps
\begin {align*} \int \frac {1}{1+\cos (x)} \, dx &=\frac {\sin (x)}{1+\cos (x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 6, normalized size = 0.67 \begin {gather*} \tan \left (\frac {x}{2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 5, normalized size = 0.56
method | result | size |
default | \(\tan \left (\frac {x}{2}\right )\) | \(5\) |
norman | \(\tan \left (\frac {x}{2}\right )\) | \(5\) |
risch | \(\frac {2 i}{1+{\mathrm e}^{i x}}\) | \(13\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.44, size = 9, normalized size = 1.00 \begin {gather*} \frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.11, size = 9, normalized size = 1.00 \begin {gather*} \frac {\sin \left (x\right )}{\cos \left (x\right ) + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 3, normalized size = 0.33 \begin {gather*} \tan {\left (\frac {x}{2} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 30 vs.
\(2 (9) = 18\).
time = 1.12, size = 30, normalized size = 3.33 \begin {gather*} -\frac {2 \, \tan \left (\frac {1}{2} \, x\right )}{{\left (x^{2} + 1\right )} {\left (\frac {x^{2} - 1}{x^{2} + 1} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.19, size = 4, normalized size = 0.44 \begin {gather*} \mathrm {tan}\left (\frac {x}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________