|
SOLUTIONS
|
MATHEMATICA 内置符号
Accumulate
Accumulate[list]
给出 list 中元素的逐次累积总值列表.
更多信息更多信息
- 如果 list 长度为 n,则 Accumulate[list] 将具有相同长度.
- Accumulate[list] 实际等价于 Rest[FoldList[Plus, 0, list]].
- Accumulate[list, Method->"CompensatedSummation"] 用补偿总和减少结果中的数字错误.
版本 6 的新功能 | 版本 7 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
