Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Mathcad calculation won't result in array

Status
Not open for further replies.

mrlazies

Civil/Environmental
Mar 31, 2013
1
Link
Link

the above outlines the problem I am having in mathcad. I would like my file to calculate the result of my Fcr2 and Mn2 in a 40x1 array. I don't understand why this was successful in the second picture but not in the first. The best insight I can give is that when I delete the second Lb variable in the Fcr2 equation I get the array output I'm looking for; dissolving the equation into A and B demonstrates the problem.

I would greatly appreciate help with this issue, thank you.
 
Replies continue below

Recommended for you

If there are multiple variable that are an array, you must use a matrix subscript when they are in an equation so mathcad knows how to perform the operation. That is why A*B only gives one answer. you must define a range variable like k:= 0,1; last(A) , and then write your equation A[k*B[k. (note I typed the previous as I would in mathcad). Your second equation worked because it would appear that Lb is the only array in the equation, so mathcad automatically knows what values to multiply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor