How to numerically calculate the function 1/(x^2 - alpha^2) with GSL routines?

  • Thread starter Thread starter emilroz
  • Start date Start date
  • Tags Tags
    Integration
emilroz
Messages
3
Reaction score
0
Hi, already tried few routines from GSL and it seems it doesn't work.

Function: 1/(x^2 - alpha^2)

Can anyone tell how to calculate that numerically.
Tried to do it by "hand" as well but no good results.

Cheers.
 
Physics news on Phys.org
You don't need a numerical solution for this. I assume alpha is just an arbitrary constant. Note that the denominator can be written as a product of 2 functions.
 
Thanks for respond.

Actually the problem is bit more complicated. Integral is (-inf, inf) and whole function is equal to:

f(y,z) = int_(-inf,inf) dx [2y/(x^2-y^2) ] * [ 1/(exp{x-z} +1)]

What do u think about that.
 
You mean this:
f(x,y,z) = \int^{\infty}_{-\infty} \left( \frac{2y}{x^2-y^2} \right) \frac{dx}{e^{x-z}+1}
 
Exactly
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top