cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

1-Newbie

WE & Fred thank you very much for answering the question, specially to WE.

WE, is it possible to get the answer in the following format? Thank you

ab
AA+aA+b
BB+aB+b
CC+aC+b

Original question

Hi, is it possible in Mathcad 15 or Prime to do a vector element by element addition that takes as input 2 vectors for example,vector x = [ A,B,C ] and y = [ a,b ] and has as output z = A+a, A+b, B+a, B+b,C+a & C+b ?

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:jsuarez)

Here you are:

4 REPLIES 4
24-Ruby V
(To:jsuarez)

Does the attached help?

1-Newbie
(To:Werner_E)

Hi Wegner,

Your are really and expert in programming in Mathcad. Can you address please the final question in my first post. This is  what I wrote back then in my first post

Hi WE, thank you very much for your excellent answer. Since you are asking me I  prefer if the 3X2 matrix would be 3  1x2 matrix,

[A+a, A+b]

[B+a, B+b]

[C+a, C+b]

Your previous two solutions are elegant, but I basically prefer the output as 3 separated matrices as shown above.

Thank you very much.

juan

24-Ruby V
(To:jsuarez)