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
Click For Summary

Homework Help Overview

The discussion revolves around the numerical calculation of the function 1/(x^2 - alpha^2) using GSL routines, with a focus on a more complex integral involving this function.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants explore the numerical methods available in GSL and question the necessity of a numerical solution for the function. The original poster describes attempts to calculate the function both numerically and manually, while others suggest a different interpretation of the problem involving an integral.

Discussion Status

The discussion is ongoing, with participants clarifying the mathematical formulation of the integral and exploring its implications. Some guidance has been offered regarding the structure of the denominator, but no consensus has been reached on the best approach to tackle the problem.

Contextual Notes

The integral in question is defined over the range (-inf, inf), adding complexity to the numerical calculation. There is an assumption that alpha is a constant, but its specific value or constraints are not discussed.

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:
[tex]f(x,y,z) = \int^{\infty}_{-\infty} \left( \frac{2y}{x^2-y^2} \right) \frac{dx}{e^{x-z}+1}[/tex]
 
Exactly
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
3
Views
2K
Replies
7
Views
2K
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 44 ·
2
Replies
44
Views
6K
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K