Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Apr 2, 2009
Messages
2
Location
NO
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.
 
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

Back
Top