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

jazgara@un1

Poland
6 Posts

Posted - 08/27/2002 :  06:30:12 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have got a big problem with an Y-script funcion form. I'm trying to use it to specify offset (y0) (in a Lorentz fitting funcion) as a line.
Can I write:
"y0=a*x+b;
y=y0+(2*A/PI)*(w/(4*(x-xc)^2+w^2));"
and Y0 set as a dependent variable, or y0 should stay parameter?

easwar

USA
1964 Posts

Posted - 08/29/2002 :  10:38:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

Your script is fine. The way you have defined y0, it is just a temporary variable, and so should not be declared either as a dependent variable or as a parameter. You should declare a and b as parameters, along with A, xc, and w.

Easwar
OriginLab.

Edited by - easwar on 08/29/2002 10:39:56 AM
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