RosettaCodeData/Task/Cumulative-standard-deviation/MATLAB/cumulative-standard-deviation-3.m

4 lines
80 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function stdDevEval(n)
disp(sqrt(sum((n-sum(n)/length(n)).^2)/length(n)));
end