Approximation of Pi (Leibniz formula)
バージョン 1.0.0 (1.41 KB) 作成者:
Dr. Kelsey Joy
Convergence with while loops; Sigma (sum) without symsum formula
This code is explained in the following YouTube Video:
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
引用
Dr. Kelsey Joy (2025). Approximation of Pi (Leibniz formula) (https://jp.mathworks.com/matlabcentral/fileexchange/102659-approximation-of-pi-leibniz-formula), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2021b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxタグ
謝辞
ヒントを与えたファイル: 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!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0 |