For example I have two functions expressed with two lists:
x_1 = [0, 1, 2, 3, 4, 5]
y_1 = [2, 4, 1, 5, 1, 2]
x_2 = [2, 3, 4, 5, 6, 7]
y_2 = [2, 4, 1, 5, 1, 2]
and the result should be
x = [0, 1, 2, 3, 4, 5, 6, 7]
y = [2, 4, 3, 9, 2, 7, 1, 2]
Here I set the x values in the integer lattice but it is not necessary. But I guess one solution could be normalizing them onto the lattice and then add them.
Is there any simple method to do this? Numpy and Scipy are both available.
Thanks!
A simple illustration

xvalues? Do they overlap, are they contiguous?