Say I have the following setup:
x=np.array(range(0,100))
y=x**0.5
z=x**2
How could I get all the values of y between 4 and 8, and create a new array that had a row for those y values, but also a row for the corresponding z values?
i.e. 25 in x has a y value of 5 which is between 4 and 8, I'd like this value, but I'd also like the z value of 625 in the row below.
The math equations are just an example, the forumals could be anything including bessel functions.
Thanks