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
 HOW

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
hassan2020 Posted - 02/04/2009 : 05:34:57 AM
Hi
please
how to fit this function in origiC
y=[exp(P1*x/1) +P2*x^1]+[P1*exp(x/2) +P2*x^2]+[P1*exp(x/3)+P2*x^3]+[P1*exp(x/4)+P2*x^]+[P1*exp(x/5)+P2*x^5]+...+[P1*exp(x/k)+P2*x^k]+......
(k=1,...,1000)

thanks for help.
1   L A T E S T    R E P L I E S    (Newest First)
VincentLiu Posted - 02/05/2009 : 04:49:26 AM

Hi hassan2020,

You may use following codes to define the function:

y=P1*exp(x)+P2*x;
for (int ii=2;ii<=1000;ii++)
{
y= y+P1*exp(x/ii)+P2*x^ii;
}


The following image may help you to define the fitting function. Please note that I treat your function as

y= [P1*exp(x/1) +P2*x^1] +[P1*exp(x/2) +P2*x^2]+[P1*exp(x/3)+P2*x^3]+...+[P1*exp(x/k)+P2*x^k]+......
(k=1,...,1000)

There is a minor different between your function and the function above. So if you wrote the function correctly, you need to do minor modification to the codes.



For more details about User-Defined function, please refer to

http://www.originlab.com/www/helponline/Origin8/en/mergedProjects/Tutorial/Tutorial/User_Defined_Fitting_Function_using_OC.html

Best regards,
Vincent Liu
OriginLab Technical Services


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