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! NLFit compile failed with Origin C

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
bitalien Posted - 12/01/2014 : 10:34:21 PM
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.

3   L A T E S T    R E P L I E S    (Newest First)
bitalien Posted - 12/03/2014 : 12:39:38 AM
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.

snowli Posted - 12/02/2014 : 12:32:25 PM
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.
bitalien Posted - 12/01/2014 : 10:40:01 PM






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