An open API service indexing awesome lists of open source software.

https://github.com/mchatcher/infinite_sum_matlab

Vectorization of infinite sum in Matlab
https://github.com/mchatcher/infinite_sum_matlab

Last synced: 10 months ago
JSON representation

Vectorization of infinite sum in Matlab

Awesome Lists containing this project

README

          

# Infinite_sum_matlab
Vectorization to find an approximation to an infinite sum in Matlab
This repository computes an infinite sum -- the Leibniz formula for pi -- using vectorization in Matlab. Written by M. Hatcher (18/11/2024) and inspired by LinkedIn post of William Gatt (17/11/2024).
For comparison purposes, a code that uses a 'for loop' is also provided. The speed difference of vectorization is apparent for a large number of terms, J.