Summation - Definite.
Version 1.0.0 (1.32 KB) by
Miguel
Simple Definite Summation Script You can change the initial and final point to define your precision. You can then change the expression.
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).
Cite As
Miguel (2024). Summation - Definite. (https://www.mathworks.com/matlabcentral/fileexchange/70013-summation-definite), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2018b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |