aboutsummaryrefslogtreecommitdiffstats
path: root/math2373/lab5/sum_of_nn.m
diff options
context:
space:
mode:
Diffstat (limited to 'math2373/lab5/sum_of_nn.m')
-rw-r--r--math2373/lab5/sum_of_nn.m4
1 files changed, 4 insertions, 0 deletions
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