Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Bug with mathematica

  1. Jul 29, 2011 #1
    When I try
    Simplify[Sqrt[1/(c^2 L^2 - k^2 q^2 Q^2)] Sqrt[c^2 L^2 - k^2 q^2 Q^2],
    c^2 L^2 - k^2 q^2 Q^2 > 0]
    I get
    Sqrt[1/(c^2 L^2 - k^2 q^2 Q^2)] Sqrt[c^2 L^2 - k^2 q^2 Q^2]
    as output

    but when I try
    Simplify[Sqrt[1/(c^2 L^2 - k^2 Q^2)] Sqrt[c^2 L^2 - k^2 Q^2],
    c^2 L^2 - k^2 Q^2 > 0]
    I get
    1
    as output. Can someone resolve is that a bug or I am doing something wrong.

    Thank You,
     
  2. jcsd
  3. Jul 29, 2011 #2
    It's not a bug, in that the answer is not actually wrong... Mma gets confused when there's too many terms, especially in integrals with too many constants that are grouped together. If you run into problems like this where you know there is a group of terms that often occurs, sometimes you need to help it along.

    Simplify[Sqrt[1/(c^2 L^2 - k^2 q^2 Q^2)] Sqrt[c^2 L^2 - k^2 q^2 Q^2],
    c^2 L^2 > k^2 q^2 Q^2]
    (* doesn't work, so help it with *)
    Simplify[% /. c^2 L^2 -> a + k^2 q^2 Q^2, a > 0]
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Bug with mathematica
  1. Mathematica bug? (Replies: 5)

Loading...