Optimal. Leaf size=14 \[ \frac {2 \cos (x)}{\sqrt {1-\sin (x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2725}
\begin {gather*} \frac {2 \cos (x)}{\sqrt {1-\sin (x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rubi steps
\begin {align*} \int \sqrt {1-\sin (x)} \, dx &=\frac {2 \cos (x)}{\sqrt {1-\sin (x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(42\) vs. \(2(14)=28\).
time = 0.01, size = 42, normalized size = 3.00 \begin {gather*} \frac {2 \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right ) \sqrt {1-\sin (x)}}{\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 23, normalized size = 1.64
method | result | size |
default | \(-\frac {2 \left (\sin \left (x \right )-1\right ) \left (\sin \left (x \right )+1\right )}{\cos \left (x \right ) \sqrt {1-\sin \left (x \right )}}\) | \(23\) |
risch | \(\frac {i \sqrt {2-2 \sin \left (x \right )}\, \sqrt {-i \left (2 i {\mathrm e}^{2 i x}-{\mathrm e}^{3 i x}+{\mathrm e}^{i x}\right )}\, \sqrt {2}\, \left ({\mathrm e}^{i x}-i\right ) \left ({\mathrm e}^{i x}+i\right )}{\left (2 i {\mathrm e}^{i x}-{\mathrm e}^{2 i x}+1\right ) \sqrt {i \left ({\mathrm e}^{3 i x}-2 i {\mathrm e}^{2 i x}-{\mathrm e}^{i x}\right )}}\) | \(102\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 26 vs.
\(2 (12) = 24\).
time = 1.27, size = 26, normalized size = 1.86 \begin {gather*} \frac {2 \, {\left (\cos \left (x\right ) + \sin \left (x\right ) + 1\right )} \sqrt {-\sin \left (x\right ) + 1}}{\cos \left (x\right ) - \sin \left (x\right ) + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {1 - \sin {\left (x \right )}}\, dx \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. 35 vs.
\(2 (12) = 24\).
time = 0.46, size = 35, normalized size = 2.50 \begin {gather*} -2 \, \sqrt {2} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, x\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, x\right )\right ) - \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, x\right )\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.14, size = 18, normalized size = 1.29 \begin {gather*} \frac {2\,\sqrt {1-\sin \left (x\right )}\,\left (\sin \left (x\right )+1\right )}{\cos \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________