piPEN(PE)
Versión 1.2.0.0 (971 Bytes) por
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)
Citar como
Roche de Guzman (2024). piPEN(PE) (https://www.mathworks.com/matlabcentral/fileexchange/59789-pipen-pe), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2015a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Mathematics > Linear Algebra >
Más información sobre Linear Algebra en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.