From 11a9605c450ef6db29103a454f6d0947b6d727c3 Mon Sep 17 00:00:00 2001 From: Giovanni Di Grezia Date: Sun, 5 Oct 2014 14:42:44 +0200 Subject: [PATCH] Creato esercizio : 1 + sommatoria da 1 a 1e7 di 1e-17 --- sample_sum_to_1e7.m | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sample_sum_to_1e7.m diff --git a/sample_sum_to_1e7.m b/sample_sum_to_1e7.m new file mode 100644 index 0000000..e6c4122 --- /dev/null +++ b/sample_sum_to_1e7.m @@ -0,0 +1,8 @@ +% 1 + sommatoria da 1 a 1e7 di 1e-17 + +sum = 0; +for i=1:1e7 + sum = sum + 1e-17; +end +sum = sum + 1; +sum