nickibee
Aerospace
- Apr 7, 2005
- 2
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)
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