62.8k views
5 votes
If A = [ 1 2 4 0 5 6 ] and B= [ 7 3 2 5 1 9] find C= A+B and D=A-B

1 Answer

2 votes

Step 1: Arrange the arrays so that A and B are in the same order: A = [ 1 2 4 0 5 6 ], B = [ 7 3 2 5 1 9]

Step 2: To find C = A+B, add each element of A and B together.

C = [1+7, 2+3, 4+2, 0+5, 5+1, 6+9]

C = [8, 5, 6, 5, 6, 15]

Step 3: To find D = A-B, subtract each element of B from A.

D = [1-7, 2-3, 4-2, 0-5, 5-1, 6-9]

D = [-6, -1, 2, -5, 4, -3]

User Scott Bossak
by
8.1k points