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
 PLEASE HELP
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

athoba

Germany
3 Posts

Posted - 07/22/2010 :  10:41:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): origin 7 SR 2
Operating System: wind xp
Hello everybody,
I realy need help

since 2 weeks I am trying to use this function:
y=(298.4/1+((1.4-x+P1)-((1.4-x+P1)*(1.4-x+P1)+4*x*P2)^1/2)/P1)-100.8((1.4-x+P1)-((1.4-x+P1)*(1.4-x+P1)+4*x*P1)^1/2))+811.3*P2)/(175.5/1+(1.4-x+P1)-((1.4-x+P1)*(1.4-x+P1)+4*x*P1)^1/2)/P1)-53((1.4-x+P1)-((1.4-x+P1)*(1.4-x+P1)+4*x*P1)^1/2))+312*P2);
to fit this data
C/ mM Hydrodynamic Radius/ nm
0 1.7
0.055 1.8
0.11 1.88
0.21 1.98
0.29 2.29
0.55 2.65
0.75 2.67
0.89 2.69
1 2.68
1.13 2.72
1.2 2.71
1.26 2.72
1.36 2.75
Every time I got this message: Unable to compile user defined function


I opened a new workspace and loaded the function then I tried to compile it but I got this Errors

compiling...
_nlfyath2.fit
C:\Programme\OriginLab\Origin7\OriginC\NLSF\_nlfyath2.fit(23) :Error, invalid term
C:\Programme\OriginLab\Origin7\OriginC\NLSF\_nlfyath2.fit(23) :Error, general compile error
C:\Programme\OriginLab\Origin7\OriginC\NLSF\_nlfyath2.fit(14) :Error, error(s) found in compiling function _nlsfyath2

Sincerely Yours

greg

USA
1378 Posts

Posted - 07/22/2010 :  1:33:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Your first problem is that you cannot use implicit multiplication, so you must replace
-100.8((
with
-100.8*((
and
53((
with
53*((
unless you need addition or subtraction here.
The remaining problem is a parity error with your parentheses. Adding five more '(' to the beginning of the equation compiles, but I have no idea what you intended.
Go to Top of Page

athoba

Germany
3 Posts

Posted - 07/22/2010 :  5:41:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

Danke gerg. It is working now
but the fit results sounds strange. Any way I will come back if it is not working


Sincerely Yours
Go to Top of Page

athoba

Germany
3 Posts

Posted - 07/23/2010 :  12:53:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Anguilla and one moment, still I have this error: "28037, possibly error in formula or poorly initialized parameters",
What shall I do, scape or give up, I am writing my thesis I want to finish
This equation I devolped it from dynamic light scattering equations
to get the association constant and the concentration of the species? BUT
what shall I do??


Sincerely Yours
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