piPEN(PE)
版本 1.2.0.0 (971 字节) 作者:
Roche de Guzman
fx with in = error [%] & out = iterations for pi series approx: (pi^2)/6 = sum (1/k^2) at k = 1 to N
%% Function that computes
% Output: N = the number of iterations (if >= 1e5, then N = Inf), given
% Input: PE = percent error [%]
% to approximate pi using the pi series:
% (pi^2)/6 = summation of (1/k^2) from k = 1 to N
%
% Author: Roche de Guzman, Ph.D.
% Hofstra University
function N = piPEN(PE)
引用格式
Roche de Guzman (2024). piPEN(PE) (https://www.mathworks.com/matlabcentral/fileexchange/59789-pipen-pe), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2015a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Mathematics > Linear Algebra >
在 Help Center 和 MATLAB Answers 中查找有关 Linear Algebra 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!