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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 HELP! NLFit compile failed with Origin C
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bitalien

China
13 Posts

Posted - 12/01/2014 :  10:34:21 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,guys
I needed an equation to NLFit the nucleation curve for my data, so I tried to use Origin C to define this equation. In this equation, x was independent variable and y was dependent variable, the two parameters were A and N, at the same time I defined 10 constants(a, b ,c, d, e, f, g, h, i, j)in order to simplify this equation. The equation was seen as follows, which was quite complex. When all of above things were done, I complied but found that it couldn't work. I will be very appreciate it that if anyone can help me out!
Origin V 9.1, Windows 7.

bitalien

China
13 Posts

Posted - 12/01/2014 :  10:40:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply





Go to Top of Page

snowli

USA
1421 Posts

Posted - 12/02/2014 :  12:32:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

I bet it's "Error, mismatching usage of parentheses".

In Origin 2015, we color matching parenthesis pairs with different colors so that it's much easier to define complicated formula with many parentheses, such as Fitting function builder, Set Column Values dialog and Function Plot dialog.
See Graphing and Analysis part of http://originlab.com/2015
Also see Release Notes page: https://originlab.jira.com/wiki/x/UIDcAg

Two issues found in your formula:
1. ")" is missing after denominotor (A*x)^3+g*(A*x)^2+h*A*x.
2. There is a typo since you typed it as j*A*x.

Here should be the correct one:
y=a*(b*x^(-0.5)+c*(1+d*exp(e*x^(-0.5)))*(1-exp(f*N*x^0.5*((A*x)^3+g*(A*x)^2+h*A*x+i)/((A*x)^3+g*(A*x)^2+h*A*x))/(b*x^(-0.5)+c*(1+d*exp(e*x^(-0.5))))))


Thanks, Snow
OriginLab Corp.

Edited by - snowli on 12/02/2014 12:36:39 PM
Go to Top of Page

bitalien

China
13 Posts

Posted - 12/03/2014 :  12:39:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for your help,Snow!
quote:
Originally posted by snowli

Hello,

I bet it's "Error, mismatching usage of parentheses".

In Origin 2015, we color matching parenthesis pairs with different colors so that it's much easier to define complicated formula with many parentheses, such as Fitting function builder, Set Column Values dialog and Function Plot dialog.
See Graphing and Analysis part of http://originlab.com/2015
Also see Release Notes page: https://originlab.jira.com/wiki/x/UIDcAg

Two issues found in your formula:
1. ")" is missing after denominotor (A*x)^3+g*(A*x)^2+h*A*x.
2. There is a typo since you typed it as j*A*x.

Here should be the correct one:
y=a*(b*x^(-0.5)+c*(1+d*exp(e*x^(-0.5)))*(1-exp(f*N*x^0.5*((A*x)^3+g*(A*x)^2+h*A*x+i)/((A*x)^3+g*(A*x)^2+h*A*x))/(b*x^(-0.5)+c*(1+d*exp(e*x^(-0.5))))))


Thanks, Snow
OriginLab Corp.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000