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
 declaration of Variable

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
ghorycon Posted - 02/24/2012 : 02:49:12 AM
Origin Ver. : 7.5
Operating System:win XP
Hello, i'm very new to origin and am having a few troubles.
I tried the following funciton
Parameters: y0,xc, w, A
Indep var: x
Dep var: y
Function code:
y = y0 + 4*A*exp(-z)/(1+exp(-z))^2
z = (x-xc)/w
After compiling,the error is shown by "Variable "z" not declared".
I want to know how to declare the Variable "z".?
Please advice!!! Really need the help!!!

2   L A T E S T    R E P L I E S    (Newest First)
ghorycon Posted - 02/25/2012 : 7:49:32 PM
Hi Easwar,
It works now successfully ! Thank you very much for your attention!
easwar Posted - 02/24/2012 : 10:58:15 AM
Hi,

Try changing to:

double z = (x-xc)/w;
y = y0 + 4*A*exp(-z)/(1+exp(-z))^2;

Easwar
OriginLab

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