TransWikia.com

How would you perform a simple operation on two adjacent elements of a list?

Mathematica Asked by Quarkly on November 22, 2020

I have an arbitrary list of elements:

list = {a, b, c, d, e, f}

How would I produce:

returns = {(b - a) / b, (c - b) / c, (d - c) / d, (e - d) / e, (f - e) / f} 

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP