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!

Mathcad calculation won't result in array

Status
Not open for further replies.

mrlazies

Civil/Environmental
Joined
Mar 31, 2013
Messages
1
Location
US
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.
 
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

Back
Top