diff options
Diffstat (limited to 'math2373/lab5')
-rw-r--r-- | math2373/lab5/lab4.txt | 0 | ||||
-rw-r--r-- | math2373/lab5/multseries.m | 5 | ||||
-rw-r--r-- | math2373/lab5/sum_of_fourths.m | 4 | ||||
-rw-r--r-- | math2373/lab5/sum_of_nn.m | 4 | ||||
-rw-r--r-- | math2373/lab5/test.m | 1 |
5 files changed, 14 insertions, 0 deletions
diff --git a/math2373/lab5/lab4.txt b/math2373/lab5/lab4.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/math2373/lab5/lab4.txt 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 |