Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

these values can not be compared

Status
Not open for further replies.

bondmmo

Marine/Ocean
Apr 2, 2009
2
Hi, first, I would like to say i am very new for Mathcad. My questions might be very easy for someone.

You can see an error in my file, the attachment.
I've tried to calculate drag force at each water depth.I can calculate current at each water depth. But when i tried to use the results(current) in another question to find force, I got "these values can not be compared".

I know that there is something about array or others but i don't know how to fix it.

<After i calculate the force, i still need to use the force in further equations. this would be the same problem how to identify array for the eq.>
Anyone please gives me an advice?

another question, how i can adjust space between each row(equation boxes)?

Thank you so much.
 
Replies continue below

Recommended for you

I could not open your file with MathCad 14. Are you using lb or lbf for force?
 
Mathcad's range variables can be quite annoying, at times. A range variable, like d, is not a vector, and so some operations that work in some expressions will not work in others. You can also do your current calculation as a single if.

do the following:

i:0;3000 d[i:-i

current(d):if(-40<=d<=0,(-0.5*(-d)/400)+0.7,0.2)

drag[i:-1/2*cd_wcp*area_wcp*rho*current(d[i)

where
: is the keystroke for the := assignment
[ invokes the array subscript operator


TTFN

FAQ731-376
 
Thank you for both. I can do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor