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
 Help with fitting data to an integral

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
vphan Posted - 07/11/2007 : 4:49:38 PM
Origin Version (Select Help-->About Origin): 7.0 SR4
Operating System:XP


Hi all,

I need to fit numerous sets of data to the form:

y(t)=Int[A*(sin(2*B*t*sin(b)))^2*sin(b)db] bmin=0, bmax=Pi. I am little lost as to what to do. I have already looked at numerous posts on this forum and am still confused as to what is needed to be done. Thanks for any help you can give me.
2   L A T E S T    R E P L I E S    (Newest First)
vphan Posted - 07/12/2007 : 2:30:30 PM
Thanks for the help.
larry_lan Posted - 07/11/2007 : 10:02:10 PM
Hi:

Actually, you can follow This Example. I modify the function a little and you can defile a function like:


double dU = PI;
double dL = 0.0;
double b = dL;
int nSteps = 100;
double db = (dU-dL)/nSteps;
double dF;
double dFF;
double dInteg = 0.0;
for (int ii = 0; ii < nSteps; ii++)
{
if (ii == 0)
dF = a * ( sin(2*b*x*sin(b)) * sin(2*b*x*sin(b)) ) * sin(b);
else
dF = dFF;
b += db;
dFF = a * ( sin(2*b*x*sin(b)) * sin(2*b*x*sin(b)) ) * sin(b);
dInteg += 0.5*(dF + dFF)*db;
}
y = dInteg;


Larry
OriginLab Technical Services

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