- #1
Elwin.Martin
- 207
- 0
Long story short I have an integral which is something like this:
(in Mathematica code)
Integrate[1/{(1 - b^2)*{((1 - y)*z + y)^2 + (1 - y)^2*(1 - z)^2} + 2*(b^2 + 1)*{(1 - y)*(1 - z)*((1 - y)*z + y)}}, {y, 0, 1} ]
Written without assumptions.
b is actually only in [0,1] and I think I can limit z to [0,1] as well. z is actually in the next integral ^^; which is from 0 to 1.
How do I add assumptions in proper syntax? I've tried two different ways and gotten VERY different results...so I'm a little concerned about my syntax and Mathematica's reference site didn't help much.
I have been using something like ", Assumptions-> 0<=b<=1, 0<=z<=1" I think...but I'm not positive about my consistency.
For those of you who don't have direct access to Mathematica or anything and don't read raw code super easily here's the integral in traditional form:
[itex] \int^1_0 \frac{dy}{{(1 - b^2)*{((1 - y)*z + y)^2 + (1 - y)^2*(1 - z)^2} + 2*(b^2 + 1)*{(1 - y)*(1 - z)*((1 - y)*z + y)}}} [/itex]
If context is helpful, the integration is the result of a Feynman parametrization of a basic QCD process. Everything is scalar though, the vectors have all been dotted or otherwise taken care of and absorbed into the b term (Sort of). The rest of the integrations are a whole other mess.
(in Mathematica code)
Integrate[1/{(1 - b^2)*{((1 - y)*z + y)^2 + (1 - y)^2*(1 - z)^2} + 2*(b^2 + 1)*{(1 - y)*(1 - z)*((1 - y)*z + y)}}, {y, 0, 1} ]
Written without assumptions.
b is actually only in [0,1] and I think I can limit z to [0,1] as well. z is actually in the next integral ^^; which is from 0 to 1.
How do I add assumptions in proper syntax? I've tried two different ways and gotten VERY different results...so I'm a little concerned about my syntax and Mathematica's reference site didn't help much.
I have been using something like ", Assumptions-> 0<=b<=1, 0<=z<=1" I think...but I'm not positive about my consistency.
For those of you who don't have direct access to Mathematica or anything and don't read raw code super easily here's the integral in traditional form:
[itex] \int^1_0 \frac{dy}{{(1 - b^2)*{((1 - y)*z + y)^2 + (1 - y)^2*(1 - z)^2} + 2*(b^2 + 1)*{(1 - y)*(1 - z)*((1 - y)*z + y)}}} [/itex]
If context is helpful, the integration is the result of a Feynman parametrization of a basic QCD process. Everything is scalar though, the vectors have all been dotted or otherwise taken care of and absorbed into the b term (Sort of). The rest of the integrations are a whole other mess.