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
 Problem with Fitting Function

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
Heckisack Posted - 07/01/2014 : 03:12:40 AM
Origin Ver. 8.6.0G 32bit
Operating System:Windows 7 64bit

Hello i have a problem with building a fitting function for my data. This my first try at this so i'm totally knew to that.

The function looks like this:

n/no=(1-p/pm)^(-ke*pm),

where n0 is a initial viscosity, n is a viscosity, p a filler loading, pm a maximum filler loading, ke is a free parameter.

My Data consist of various viscosities (n) and filler loadings (p). The goal is to calculate a pm for a theoretical maximum filler loading.

So i put this in the function manager and created a new function (User defined, Origin C), but when i try to compile it it gives me the following errors:

:Fehler, ungültiger Typ des Funktionsarguments
:Fehler, Syntaxfehler in Deklaration der Funktion.

which translates to

:Error, invalid type of function argument
:Error, declaration syntax error in function

I honestly have noc clue what i can change. I tried to put the parameters in different categories (Parameter, independent variable)but couldn't get it to work.

Anyone here that can solve my problem?
2   L A T E S T    R E P L I E S    (Newest First)
Heckisack Posted - 07/02/2014 : 01:45:45 AM
Thank you for your answer, the main error was the "/" on the left side of the equation. It worked now, thanks again!
snowli Posted - 07/01/2014 : 10:11:42 AM
Hello,

You can choose Tools: Fitting Function Builder which can guide you step by step to define a function.

Name and Type page:
Choose OriginC as function type

Variables and Parameters page
Set Independent variable as p
Set dependent variable as n
Set parameter and constants. Or you can set no, pm, ke all as parameters

Origin C Fitting Function page
We don't support using / on the left of =, so try to define as follows
n=no * (1-p/pm)^(-ke*pm)

There is a running man button to help you test with some changing p values, if some n output shows.

You can enter pm, no as Fixed on the page so when fitting, they will not change.

On our Video Tutorials page, you can find many Curve Fitting videos which may be helpful for you.
http://originlab.com/index.aspx?go=SUPPORT/VideoTutorials


Hope it helps!

Thanks, Snow
OriginLab Corp.

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