Author |
Topic |
|
Sarsour
Canada
3 Posts |
Posted - 01/19/2012 : 5:39:32 PM
|
Hello,
I'm using origin 7.0 SR2 and I'm trying to input this equation
A=F*0.5*(Kd+n*Ht+Dt-((Kd+n*Ht+Dt)^2-(4*n*Ht*Dt)^0.5)
I am trying to fit some data to figure out what F and Kd are.
Ht is my x axis, A is my y axis, Dt is always 0.5 n is always 1 F and Kd are my unknowns...
I'm kind of new to origin, but when I input this equation and compile it, it's giving me 2 errors saying declaration in variable name and syntax error.. I was wondering if someone could help me figure out what the problem is.
Thank you,
|
|
Hideo Fujii
USA
1582 Posts |
Posted - 01/19/2012 : 6:13:00 PM
|
Hi,
I can count four '('s, and three ')'s.
--Hideo Fujii OriginLab |
|
|
Sarsour
Canada
3 Posts |
Posted - 01/19/2012 : 7:40:58 PM
|
quote: Originally posted by Hideo Fujii
Hi,
I can count four '('s, and three ')'s.
--Hideo Fujii OriginLab
Sorry I meant to put A=F*0.5*(Kd+n*Ht+Dt-((Kd+n*Ht+Dt)^2-(4*n*Ht*Dt))^0.5)
but I'm still getting those two errors.
Thank you,
|
|
|
Hideo Fujii
USA
1582 Posts |
Posted - 01/20/2012 : 2:39:00 PM
|
Hi Sarsour,
I have tried to compile your function both both in version 8.6 and in 7.5; and got no errors. I suggest you to check the definition carefully. Especially: Function Type: Origin C Parameters: Dt,n,F,Kd (comma-separated) Indep. Var: Ht Dep. Var.: A
--Hideo Fujii OriginLab |
|
|
Sarsour
Canada
3 Posts |
Posted - 01/20/2012 : 6:56:19 PM
|
quote: Originally posted by Hideo Fujii
Hi Sarsour,
I have tried to compile your function both both in version 8.6 and in 7.5; and got no errors. I suggest you to check the definition carefully. Especially: Function Type: Origin C Parameters: Dt,n,F,Kd (comma-separated) Indep. Var: Ht Dep. Var.: A
--Hideo Fujii
OriginLab
Oh it's working now! I think there was a problem in the program or something.... I tried a new worksheet with it and it worked.
Thank you for your help! |
|
|
|
Topic |
|
|
|