aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/math2373/lab5
diff options
context:
space:
mode:
authorRossTheRoss <mstrapp@protonmail.com>2020-01-30 16:55:04 -0600
committerRossTheRoss <mstrapp@protonmail.com>2020-01-30 16:55:04 -0600
commit175721a63b426355274fa9e8063f762020ab8362 (patch)
treecf2c1b33233d660c9f50de5e659b9343bb264984 /OLD/math2373/lab5
parentMake Python thing in Python (diff)
downloadhomework-175721a63b426355274fa9e8063f762020ab8362.tar
homework-175721a63b426355274fa9e8063f762020ab8362.tar.gz
homework-175721a63b426355274fa9e8063f762020ab8362.tar.bz2
homework-175721a63b426355274fa9e8063f762020ab8362.tar.lz
homework-175721a63b426355274fa9e8063f762020ab8362.tar.xz
homework-175721a63b426355274fa9e8063f762020ab8362.tar.zst
homework-175721a63b426355274fa9e8063f762020ab8362.zip
R E A R R A N G E
Diffstat (limited to 'OLD/math2373/lab5')
-rw-r--r--OLD/math2373/lab5/lab4.txt59
-rw-r--r--OLD/math2373/lab5/multseries.m4
-rw-r--r--OLD/math2373/lab5/sum_of_fourths.m4
-rw-r--r--OLD/math2373/lab5/sum_of_nn.m4
4 files changed, 71 insertions, 0 deletions
diff --git a/OLD/math2373/lab5/lab4.txt b/OLD/math2373/lab5/lab4.txt
new file mode 100644
index 0000000..b45f0f3
--- /dev/null
+++ b/OLD/math2373/lab5/lab4.txt
@@ -0,0 +1,59 @@
+N=10; sum_of_fourths; y
+
+y =
+
+ Columns 1 through 5
+
+ 0 1 17 98 354
+
+ Columns 6 through 10
+
+ 979 2275 4676 8772 15333
+
+ Column 11
+
+ 25333
+
+N=10; sum_of_nn; y
+
+y =
+
+ 1.2913
+
+N=10; sum_of_nn; y
+
+y =
+
+ 1.2913
+
+N=10; multseries; y
+
+y =
+
+ 3.0677
+
+N=100; multseries; y
+
+y =
+
+ 3.1338
+
+N=1000; multseries; y
+
+y =
+
+ 3.1408
+
+N=10000; multseries; y
+
+y =
+
+ 3.1415
+
+N=100000; multseries; y
+
+y =
+
+ 3.1416
+
+diary off
diff --git a/OLD/math2373/lab5/multseries.m b/OLD/math2373/lab5/multseries.m
new file mode 100644
index 0000000..d4b06d6
--- /dev/null
+++ b/OLD/math2373/lab5/multseries.m
@@ -0,0 +1,4 @@
+y=2;
+for n=1:N
+ y=y*((2*n)*(2*n))/((2*n-1)*(2*n+1));
+end \ No newline at end of file
diff --git a/OLD/math2373/lab5/sum_of_fourths.m b/OLD/math2373/lab5/sum_of_fourths.m
new file mode 100644
index 0000000..80c535f
--- /dev/null
+++ b/OLD/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/OLD/math2373/lab5/sum_of_nn.m b/OLD/math2373/lab5/sum_of_nn.m
new file mode 100644
index 0000000..dd191b7
--- /dev/null
+++ b/OLD/math2373/lab5/sum_of_nn.m
@@ -0,0 +1,4 @@
+y=0;
+for n=1:N
+ y=y+1/(n^n);
+end \ No newline at end of file