%% 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 (2022). piPEN(PE) (https://www.mathworks.com/matlabcentral/fileexchange/59789-pipen-pe), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!