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

Sarsour

Canada
3 Posts

Posted - 01/19/2012 :  5:39:32 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I can count four '('s, and three ')'s.

--Hideo Fujii
OriginLab
Go to Top of Page

Sarsour

Canada
3 Posts

Posted - 01/19/2012 :  7:40:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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,


Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 01/20/2012 :  2:39:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Sarsour

Canada
3 Posts

Posted - 01/20/2012 :  6:56:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!
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