From c944368c607add79fc3ea404629f717b42a834ce Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Mon, 14 Oct 2019 10:10:14 -0500 Subject: fix the oopsies --- math2373/lab5/sum_of_nn.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'math2373/lab5/sum_of_nn.m') diff --git a/math2373/lab5/sum_of_nn.m b/math2373/lab5/sum_of_nn.m index ea36db5..dd191b7 100644 --- a/math2373/lab5/sum_of_nn.m +++ b/math2373/lab5/sum_of_nn.m @@ -1,4 +1,4 @@ -y(1)=0; +y=0; for n=1:N - y(n+1)=y(n)+1/(n^n); + y=y+1/(n^n); end \ No newline at end of file -- cgit v1.2.3