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 |