Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR1 Operating System: XP SP3
I would like to fit to a function of the form:
y(x) = C*(x)^(-0.5) * SUM [-(D/x)*(2*n+1)^2]
where C and D are the fitting parameters and the summation is over n from zero to infinity.
I am not really sure how to proceed. I've done simple user-defined functions before but I guess the summation is sort of throwing me off here. Any suggestions would be welcome.
Thanks for the link. However (and please correct me if I'm wrong), this appears to be a method for integration, when I need a method for an infinite summation.
This example already shows how to do semi-infinite integration. You can define similar function like that using a different terminate condition. Or you can also call a NAG function to do infinite integration. Like this example that calls nag_1d_quad_inf_1 function to do one-dimensional adaptive quadrature over infinite or semi-infinite interval.