1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica showing strange output for elliptic integral

  1. Mar 1, 2009 #1
    Hi,
    I was studying calculus and I had a problem while checking my results.

    I came to the following result:
    [tex]\int_{\frac{\pi}{6}}^{\frac{\pi}{2}}\frac{1}{\sqrt{\sin t}}\:\mathrm{d}t = \sqrt{2}\cdot \mathrm{F}\left(\frac{\pi}{4},\frac{1}{4}\right) \approx1.16817[/tex]

    However, Mathematica shows:
    [tex]\int_{\frac{\pi}{6}}^{\frac{\pi}{2}}\frac{1}{\sqrt{\sin t}}\:\mathrm{d}t = 2\cdot \mathrm{F}\left(\frac{\pi}{6},2\right) \approx1.16817-9.26622\cdot10^{-17}\mathrm{i}[/tex]
    The results are almost identical (numerically) and I believe I didn't make any mistakes... is there a problem with Mathematica here?

    Thanks for your help.

    PS: Sorry for not using the template but it didn't make much sense here...
     
  2. jcsd
  3. Mar 1, 2009 #2
    Well, the integral should definitely be a real number. It is a common problem with Mathematica that small imaginary parts appear due to rounding errors.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica showing strange output for elliptic integral
  1. Elliptic integrals (Replies: 3)

  2. Strange Integration (Replies: 14)

  3. Elliptic Integral (Replies: 4)

Loading...