The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Using a summation in a function

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
timothy.v.duncan Posted - 03/04/2010 : 1:00:21 PM
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.
4   L A T E S T    R E P L I E S    (Newest First)
larry_lan Posted - 03/07/2010 : 8:55:29 PM
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.

Thanks
Larry
timothy.v.duncan Posted - 03/05/2010 : 10:28:37 AM
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.
larry_lan Posted - 03/04/2010 : 8:31:55 PM
Maybe this example can help.

Thanks
Larry
OriginLab Technical Services
timothy.v.duncan Posted - 03/04/2010 : 1:03:09 PM
Forgive me, the correct function is

y(x) = C*(x)^(-0.5) * SUM [exp(-(D/x)*(2*n+1)^2)]

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000