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
 Problem with writing an equation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LCG

Canada
9 Posts

Posted - 06/26/2013 :  4:25:09 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I'm trying to write the attached equation into origin.


I'm using OriginPro 9, I chose excplicit/labtalk script where
Fsb= dependent variable
Lt= independent variable
Kd1,Lst,Rt are constants
Kd2 is a parameter, should I be putting anything else as a parameter?

d=Kd1+Kd2+Lst+Lt+Rt
e=(Lt-Rt)*Kd1+(Lst-Rt)*Kd2+(Kd1*Kd2)
f=-Kd1*Kd2*Rt
T=acos(((-2*(d^3))+(9*d*e)-(27*f))/((2*((d^2)-(3*e))^0.5)]

Fsb=((2*((((d^2)-3*e)^0.5)*(cos(T/3))))-d)/((3*Kd1)+((2*((((d^2)-3*e)^0.5)*(cos(T/3))))-d))

I get this error when I do the quick check :
"Fsb = - "

Any ideas what I may be doing wrong?
Thanks alot

meili_yang

103 Posts

Posted - 06/26/2013 :  4:40:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi there,

Try this:

Fsb=(2*((d^2)-3*e)^0.5*cos(T/3)-d)/(3*Kd1+2*((d^2)-3*e)^0.5*cos(T/3)-d)

Meili
OriginLab Tech Support
Go to Top of Page

LCG

Canada
9 Posts

Posted - 06/26/2013 :  4:45:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Nope didn't work :(
quote:
Originally posted by meili_yang

Hi there,

Try this:

Fsb=(2*((d^2)-3*e)^0.5*cos(T/3)-d)/(3*Kd1+2*((d^2)-3*e)^0.5*cos(T/3)-d)

Meili
OriginLab Tech Support

Go to Top of Page

meili_yang

103 Posts

Posted - 06/26/2013 :  6:01:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I use Equations instead of Labtalk, I was able to get value when Quick Check.

Independent: x
Dependent: y
Parameters: Kd2
Constants: Kd1,Lst,Rt
Function Body:
d=Kd1+Kd2+Lst+x+Rt
e=(x-Rt)*Kd1+(Lst-Rt)*Kd2+(Kd1*Kd2)
f=-Kd1*Kd2*Rt
T=acos((-2*d^3+9*d*e-27*f)/(2*(d^2-3*e)^1.5))
y=(2*(((d^2)-3*e)^0.5)*(cos(T/3))-d)/(3*Kd1+2*(((d^2)-3*e)^0.5)*(cos(T/3))-d)



Meili
OriginLab Tech Support
Go to Top of Page

LCG

Canada
9 Posts

Posted - 06/26/2013 :  6:30:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Awesome!

Thank you so much Meili :)

Have a wonderful day!

quote:
Originally posted by meili_yang

Hi,

I use Equations instead of Labtalk, I was able to get value when Quick Check.

Independent: x
Dependent: y
Parameters: Kd2
Constants: Kd1,Lst,Rt
Function Body:
d=Kd1+Kd2+Lst+x+Rt
e=(x-Rt)*Kd1+(Lst-Rt)*Kd2+(Kd1*Kd2)
f=-Kd1*Kd2*Rt
T=acos((-2*d^3+9*d*e-27*f)/(2*(d^2-3*e)^1.5))
y=(2*(((d^2)-3*e)^0.5)*(cos(T/3))-d)/(3*Kd1+2*(((d^2)-3*e)^0.5)*(cos(T/3))-d)



Meili
OriginLab Tech Support

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