- #1
mudkip9001
- 20
- 0
I posted this in the Advanced Physics forum as well, but it occurred to me that this might be a more appropriate place. I'd delete it in Advanced Physics, but I can't see where to do that.
I'm need to integrate the function
[tex]\frac{A}{(1+B^2x^2)^{\frac{C+1}{2}}}[/tex]
which using wolfram alpha gives a function of the 'hypergeometric function' [tex]_2F_1(a,b;c;z)[/tex]
[tex]Ax_2F_1(\frac{1}{2},\frac{C+1}{2};\frac{3}{2};-B^2x^2)[/tex]
I'm writing a program to calculate the integral at diffent values of x. The problem is that for most of my data, x gives values of [tex]\left|B^2x^2\right|> 1[/tex] and it seems that calculating it at http://en.wikipedia.org/wiki/Gaussian_hypergeometric_series#The_hypergeometric_series" becomes much more complicated, beyond my mathematical capabilities.
messing about with wolfram it seems that as long as z<0 the solution is a real number, so it should be possible to calculate it in my program. However the http://www.gnu.org/software/gsl/manual/html_node/Hypergeometric-Functions.html" library is only capable of calculating it for |z|<1.
Homework Statement
I'm need to integrate the function
[tex]\frac{A}{(1+B^2x^2)^{\frac{C+1}{2}}}[/tex]
which using wolfram alpha gives a function of the 'hypergeometric function' [tex]_2F_1(a,b;c;z)[/tex]
[tex]Ax_2F_1(\frac{1}{2},\frac{C+1}{2};\frac{3}{2};-B^2x^2)[/tex]
I'm writing a program to calculate the integral at diffent values of x. The problem is that for most of my data, x gives values of [tex]\left|B^2x^2\right|> 1[/tex] and it seems that calculating it at http://en.wikipedia.org/wiki/Gaussian_hypergeometric_series#The_hypergeometric_series" becomes much more complicated, beyond my mathematical capabilities.
The Attempt at a Solution
messing about with wolfram it seems that as long as z<0 the solution is a real number, so it should be possible to calculate it in my program. However the http://www.gnu.org/software/gsl/manual/html_node/Hypergeometric-Functions.html" library is only capable of calculating it for |z|<1.
Last edited by a moderator: