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
 Compilation errors

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
Sarsour 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,

4   L A T E S T    R E P L I E S    (Newest First)
Sarsour 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!
Hideo Fujii 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 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 Posted - 01/19/2012 : 6:13:00 PM
Hi,

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

--Hideo Fujii
OriginLab

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