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
 Nolinear curve fit

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
wyxsdu Posted - 04/12/2006 : 10:40:54 PM
Origin Version (Select Help-->About Origin): 7.5714(B714)
Operating System:windows Xp
When I fit by my new function, the programm told me "Try to fixed B1"
The below is the my function(Birch-Murnaghan):
y=(3/2)*B0*(x^(-7/3)-x^(-5/3))*(1+(3/4)*(B1-4)*(x^(-2/3)-1))
The data is:
0.903165736 49.743
0.921787709 37.981
0.940409683 27.382
0.959031657 17.832
0.977653631 9.22
1.014897579 -2.526
1.033519553 -11.784
1.052141527 -17.391
1.070763501 -22.404
1.089385475 -26.869
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 04/13/2006 : 09:15:13 AM
Hi wyxsdu,

Just an additional note:

The default for defining new functions is Origin C. When defining functions using Origin C code, C language syntax needs to be followed. Thus fractions such as 3/2 are treated as integer fractions and 3/2 will be 1 and not 1.5.

The way to get around that is to define your function as:
y=(3.0/2)*B0*(x^(-7.0/3)-x^(-5.0/3))*(1+(3.0/4)*(B1-4)*(x^(-2.0/3)-1))
so the computation is forced to use doubles instead of integers.

With the Equation or LabTalk script format, this is not an issue because there is no support for int and all are treated as double.

Easwar
OriginLab


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