I have three tables of data say
t1 = {{1, 2}, {2, 3}, {3, 4}};
t2 = {{1, 3}, {2, 3}, {3, 5}};
t3 = {{1, 3}, {2, 3}};
First I want to add t1
and t2
such that first data in the brace remains same but the second data of the two tables are added up.
For an example:
tsum1 = {{1,5},{2,6},{3,9}};
How can I do it in Mathematica?
If I want to add t1
, t2
and t3
(t3
has less number of data set than t1
and t2
) such that first data points remain same but the second ones are added up.
For an example
tsum2 = {{1,8},{2,9},{3,9}};
How can I do it with Mathematica?