for some vector [25 15 23 20 .. n ] i want to find if the adjacent values exceed 1.2 of each other
Hi,
I want to write a code where for some vector [25 15 23 20 .. n ] i want to find if the ratios of the adjacent values exceed 1.2 of each other. The output result would be like "Yes" or "No". how do i go about doing that?
For example: for vector [15 25 20], because 25/15>1.2, I want the answer as "Yes".
But I would also want the same answer "Yes" if it was [25 15 20] because in this case also for the adjacent values 25/15>1.2.
Thanks.
Edit1: added "ratios of the"
Edit2: added example


