FeynCalc / feyncalc

Mathematica package for algebraic calculations in elementary particle physics.
https://feyncalc.github.io
GNU General Public License v3.0
309 stars 87 forks source link

Calculating Singular Integrals #266

Closed martinjm97 closed 3 months ago

martinjm97 commented 3 months ago

Hello,

I have had some trouble getting the library to fully evaluate some singular integrals. For example:

>>> N[Integral2[x/(1/2 - x), {x, -1, 1}]]
Integral2(x/(0.5 -1. x),{x,-1.,1.})

>>> N[Integral2[x/(1/2 - x)^2, {x, -1, 1}]]
Integral2(x/(0.5 -1. x)^2,{x,-1.,1.})

I'd expect a number as outputs for these examples rather than an expression.

I'm sorry if this is a simple problem. I am not an experienced user of Mathematica.

Answers to the provided questions:

Thank you!

vsht commented 3 months ago

Hi,

Integral{2,3,4,5} only contain some selected results results for calculations that Rolf was doing years ago. They are not universal functions capable of handling different integrals. If the expressions you are entering are not present there, they will simply remain unevaluated.

Cheers, Vlad

Am 30.04.24 um 16:52 schrieb Jesse Michel:

Hello,

I have had some trouble getting the library to fully evaluate some singular integrals. For example:

|>>> N[Integral2[x/(1/2 - x), {x, -1, 1}]] Integral2(x/(0.5 -1. x),{x,-1.,1.}) >>> N[Integral2[x/(1/2 - x)^2, {x, -1, 1}]] Integral2(x/(0.5 -1. x)^2,{x,-1.,1.}) |

I'd expect a number as outputs for these examples rather than an expression.

I'm sorry if this is a simple problem. I am not an experienced user of Mathematica.

Answers to the provided questions:

  • Mathematica version: |14.0.0 for Mac OS X x86 (64-bit) (December 13, 2023)|
  • FeynCalc version: 10.0.0
  • I used the automatic installer.
  • The output of Import[FileNameJoin[{$UserBaseDirectory, "Kernel", "init.m"}], "String"] is "( User Mathematica initialization file )"

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/FeynCalc/feyncalc/issues/266, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXSD5HDSZPAER7MA32NIZDY76V4HAVCNFSM6AAAAABHAN4RZGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TCNZRGEYDMMY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

martinjm97 commented 3 months ago

Thank you for the response! Are there other ways to calculate these sorts of integrals in FeynCalc?

--Jesse

vsht commented 3 months ago

If you know how to handle plus distributions by hand it shouldn't be difficult to cook something with Mathematica alone. I don't think that FeynCalc is even needed for that.

martinjm97 commented 3 months ago

Got it. Thank you! I'll close off the issue.