Simplify an Array Operation
Simplify an Array Operation
(OP)
I'm looking for a simple array operator (or combination of operators) that will do the same thing that I currently only can do by explicitly computing the value for every element.
Somehow, I can't find an array operator that will select the values in two arrays, subtract them, and then store them in a resulting array.
To picture what I'm doing, think of a box with several compartments. The air pressure in each compartment is different. The difference in air pressure on each of the walls determines the force on each wall.
Sounds like a simple problem, but I can't find the operator that will solve this when I store the pressures in an array.
An example of what I am trying to do is attached below.
I also included in my attachment a "forced" answer where I manually calculate the answer and show the correct result. It shouldn't be that hard.
Somehow, I can't find an array operator that will select the values in two arrays, subtract them, and then store them in a resulting array.
To picture what I'm doing, think of a box with several compartments. The air pressure in each compartment is different. The difference in air pressure on each of the walls determines the force on each wall.
Sounds like a simple problem, but I can't find the operator that will solve this when I store the pressures in an array.
An example of what I am trying to do is attached below.
I also included in my attachment a "forced" answer where I manually calculate the answer and show the correct result. It shouldn't be that hard.
STF





RE: Simplify an Array Operation
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm
RE: Simplify an Array Operation
Consider my forehead to be firmly slapped!
STF
RE: Simplify an Array Operation
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm