Author |
Topic |
|
LCG
Canada
9 Posts |
Posted - 06/26/2013 : 4:25:09 PM
|
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
|
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 |
|
|
LCG
Canada
9 Posts |
Posted - 06/26/2013 : 4:45:06 PM
|
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
|
|
|
meili_yang
103 Posts |
Posted - 06/26/2013 : 6:01:41 PM
|
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 |
|
|
LCG
Canada
9 Posts |
Posted - 06/26/2013 : 6:30:53 PM
|
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
|
|
|
|
Topic |
|
|
|