Summation - Definite.

Simple Definite Summation Script You can change the initial and final point to define your precision. You can then change the expression.

You are now following this Submission

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 (2026). Summation - Definite. (https://au.mathworks.com/matlabcentral/fileexchange/70013-summation-definite), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Linear Algebra in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0