From 3394d567443b8203c4a01c67e158dac6d6226521 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Tue, 8 Oct 2019 13:49:00 -0500 Subject: Lab 5 done --- math2373/lab5/lab4.txt | 0 math2373/lab5/multseries.m | 5 +++++ math2373/lab5/sum_of_fourths.m | 4 ++++ math2373/lab5/sum_of_nn.m | 4 ++++ math2373/lab5/test.m | 1 + 5 files changed, 14 insertions(+) create mode 100644 math2373/lab5/lab4.txt create mode 100644 math2373/lab5/multseries.m create mode 100644 math2373/lab5/sum_of_fourths.m create mode 100644 math2373/lab5/sum_of_nn.m create mode 100644 math2373/lab5/test.m (limited to 'math2373') diff --git a/math2373/lab5/lab4.txt b/math2373/lab5/lab4.txt new file mode 100644 index 0000000..e69de29 diff --git a/math2373/lab5/multseries.m b/math2373/lab5/multseries.m new file mode 100644 index 0000000..ccd2533 --- /dev/null +++ b/math2373/lab5/multseries.m @@ -0,0 +1,5 @@ +y=2; +for n=1:N + x=y*((2*n)*(2*n))/((2*n-1)*(2*n+1)); + y=x; +end \ No newline at end of file diff --git a/math2373/lab5/sum_of_fourths.m b/math2373/lab5/sum_of_fourths.m new file mode 100644 index 0000000..80c535f --- /dev/null +++ b/math2373/lab5/sum_of_fourths.m @@ -0,0 +1,4 @@ +y(1)=0; +for n=1:N + y(n+1)=y(n)+n^4; +end \ No newline at end of file diff --git a/math2373/lab5/sum_of_nn.m b/math2373/lab5/sum_of_nn.m new file mode 100644 index 0000000..ea36db5 --- /dev/null +++ b/math2373/lab5/sum_of_nn.m @@ -0,0 +1,4 @@ +y(1)=0; +for n=1:N + y(n+1)=y(n)+1/(n^n); +end \ No newline at end of file diff --git a/math2373/lab5/test.m b/math2373/lab5/test.m new file mode 100644 index 0000000..ab806ce --- /dev/null +++ b/math2373/lab5/test.m @@ -0,0 +1 @@ +y(1)=0; \ No newline at end of file -- cgit v1.2.3