If Statment with
If Statment with
(OP)
Hi
I am new to Mathcad and a bit confused. I am trying to use an if statement to say something like the following:
where
However it wont work when i try to output the value of, I am getting a "must be real" error. If i change the boolean statement in the if statement to it outputs an answer fine, however this is not what i need to work out! Does anyone know why this is?
Thanks in advance
I am new to Mathcad and a bit confused. I am trying to use an if statement to say something like the following:
CODE
Lr(R,gamma,theta):=if(phi(R,gamma,theta)< theta, 2, 10)
where
CODE
phi(R,gamma,theta):= atan(hr/Lg(theta))
Lg(theta):= Ls(theta)*cos(theta)
Ls(theta):= 2*hr/sin(theta)
Lg(theta):= Ls(theta)*cos(theta)
Ls(theta):= 2*hr/sin(theta)
However it wont work when i try to output the value of
CODE
Lr(R,gamma,theta)=
CODE
phi(R,gamma,theta)= theta
Thanks in advance
RE: If Statment with
TTFN
RE: If Statment with
Thanks for you reply
RE: If Statment with
TTFN