This script shows a simple Summation of ( 1/x ) between 1 and 2.
It is, in fact, a definite integral of 1/x analyzed between 1 and 2, by the method of exhaustion.
You can use this for summations.
Just change the ni and nf variables that are the initial and final points of n.
And then change the expression to be summed.
Compare the result of the original code with the numeric result of ln(2).
引用格式
Miguel (2024). Summation - Definite. (https://www.mathworks.com/matlabcentral/fileexchange/70013-summation-definite), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2018b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Mathematics > Linear Algebra >
在 Help Center 和 MATLAB Answers 中查找有关 Linear Algebra 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |