1. Not finding help here? Sign up for a free 30min 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!

Specify ( ] in Mathematica

  1. Sep 19, 2009 #1
    Hello:

    I would like to use Mathematica Integrate function. But how do I specify the following interval

    (0 , Pi/2 ]

    ?

    When I write

    L \[Element] (0, Pi/2]

    It simply bolds ( and ] in orange in error.

    How do I get Mathematica to recognize that for the integrand, my value L is in (0, Pi/2]?
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
     
  2. jcsd
  3. Sep 19, 2009 #2

    gabbagabbahey

    User Avatar
    Homework Helper
    Gold Member

    Try this:

    Code (Text):
    Assuming[{L>0&&L<=pi/2},Integrate[...]]
     
  4. Sep 19, 2009 #3
    i dont understand how including 0 in your integration would change the answer anyhow.. its an integration!
     
  5. Sep 19, 2009 #4

    gabbagabbahey

    User Avatar
    Homework Helper
    Gold Member

    I don't think he is integrating over [itex]L[/itex]. I think [itex]L[/itex] is a parameter that occurs in the integrand, and its value affects whether the integral converges, and to which value.

    A simple example is the integral

    [tex]\int_0^{\infty}e^{-kx}dx[/itex]

    which only converges for [itex]k>0[/itex]
     
  6. Sep 21, 2009 #5
    Yes, exactly. L pertains to the integrand.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook