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

  • Thread starter emilroz
  • Start date
  • Tags
    Integration
In summary, The conversation discusses the calculation of a function involving the integral of a complex function with an arbitrary constant. The speaker mentions trying routines from GSL and attempting to calculate the function by hand with no success. The response suggests that a numerical solution is not needed and points out that the denominator can be expressed as a product of two functions. The speaker clarifies that the integral is over the range of negative to positive infinity and provides the function in its entirety. The other party confirms the function and the summary concludes with the output of the function in its mathematical form.
  • #1
emilroz
3
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
  • #2
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.
 
  • #3
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.
 
  • #4
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]
 
  • #5
Exactly
 

What is integration in science?

Integration in science refers to the process of combining different pieces of information or ideas to form a more complete understanding of a certain topic or phenomenon. This can involve incorporating data from various sources, disciplines, or perspectives.

Why is integration important in science?

Integration is important in science because it allows us to see the bigger picture and make connections between different concepts or theories. It also helps to bridge gaps between different fields of study and promote collaboration among scientists.

What are some challenges with integration in science?

Some challenges with integration in science include dealing with conflicting or incomplete data, navigating differences in terminology or methodologies between disciplines, and managing bias or preconceived notions.

How can scientists overcome these challenges?

Scientists can overcome these challenges by actively seeking out diverse perspectives, being open-minded and willing to adjust their thinking, and using rigorous methods to analyze and interpret data. Collaboration and communication among scientists from different fields is also crucial.

What are the benefits of integrating different disciplines in science?

Integrating different disciplines in science can lead to a more comprehensive understanding of complex problems or phenomena, and can also spark new insights and innovations. It can also help to break down barriers between fields and promote interdisciplinary research and solutions.

Similar threads

  • Programming and Computer Science
Replies
11
Views
1K
  • Programming and Computer Science
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
362
  • Calculus and Beyond Homework Help
Replies
7
Views
704
  • Calculus and Beyond Homework Help
Replies
1
Views
494
  • Calculus and Beyond Homework Help
Replies
2
Views
866
  • Calculus and Beyond Homework Help
2
Replies
44
Views
4K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
13
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
3K
Back
Top