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 for Programming
 Forum for Origin C
 step function in originlab 2017

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
academic76 Posted - 12/09/2016 : 04:03:38 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2017 -version assay
Operating System: windows 7

I have read a publication from 2010 (doi:10.1039/b9nj00498j) and I would like to estimate parameters : K1,K2,G1,G2. G1,Mt are constants, G, a dependent variable (from experimental measurements) and Lt, independent variable. The code was written like that :

double a;
a=K1*K2;
double b;
b=K1-a*(Lt+2*Mt);
double c;
c=1*K1*(Mt-Lt);
double d;
d=-Lt;
for (L=Lt,step=1;abs(step)>1e-15;L=L-step)
{step=(a*L*L*L+b*L*L+c*L+D)/(3*a*L*L+2*b*L+c);};
G=(Gs+G1*K1*L+G2*K1*K2*L*L)/(1+K1*L+K1*K2*L*L)

But it seems that the step function does not work. It allows to calculate square roots from a polynomial function (degree 3) (aL^3+bL^2+cL+d=0) by the Newton-Raphson procedure and then use L to calculate G.
Could you help me to re-write, in the originPro 2017 version, something that would work...
Thank you for your help.javascript:insertsmilie('')


1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 12/10/2016 : 02:23:17 AM
Hi,

Do you mean your fitting function doesn’t work in Origin 2017?

Did you get any error message or you just get the wrong fitting data?

In order to figure out what went wrong, I think you’ better send your definition file (*.FDF) to us. You can find this file in your User Files Folder(UFF), which can be found from:
Windows START menu> Programs>OriginLab> Origin 2017> User Files Folder> fitfunc.

To contact us, please go to this page:
http://www.originlab.com/index.aspx?go=COMPANY/ContactUS

Regards,
Yuki
OriginLab

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