mathematica中怎么让数据两两相减

2025-03-06 17:36:01
推荐回答(1个)
回答1:

data = {1, 2, 3, 5, 6};
Differences[data]

输出

{1, 1, 2, 1}