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
- Host: GitHub
- URL: https://github.com/mchatcher/infinite_sum_matlab
- Owner: MCHatcher
- Created: 2024-11-18T15:32:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-25T12:23:36.000Z (about 1 year ago)
- Last Synced: 2025-02-06T06:41:05.288Z (11 months ago)
- Language: MATLAB
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.