Approximation of Pi (Leibniz formula)

Convergence with while loops; Sigma (sum) without symsum formula
89 téléchargements
Mise à jour 27 nov. 2021

Afficher la licence

This code is explained in the following YouTube Video:
pi approximation video: https://youtu.be/O_3AokCoh6k
In this video I cover how to code while loops in MATLAB and running totals (recursion) for the purpose of creating a solution with convergence. The develop a code to find the approximation of pi within a user-defined tolerance (input) based on the Leibniz formula for pi.
For more of my YouTube Videos, check out my MATLAB tutorial playlist: https://youtube.com/playlist?list=PLmB_c16LoAcWz_5qK1XpBlP0DiD6cgU-r
Also subscribe to my channel (Engineering with Dr. Kelsey Joy): https://www.youtube.com/channel/UCmZl7PfanvCILyiQ5R9rONA

Citation pour cette source

Dr. Kelsey Joy (2024). Approximation of Pi (Leibniz formula) (https://www.mathworks.com/matlabcentral/fileexchange/102659-approximation-of-pi-leibniz-formula), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2021b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Remerciements

A inspiré : MATLAB: Plot a function (approximation of pi)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0