From 04180ec5e0d74f4b027588c868f47b4489cfe243 Mon Sep 17 00:00:00 2001 From: ngwalang Date: Sun, 14 May 2023 17:28:48 +0200 Subject: [PATCH] =?UTF-8?q?Ex1=20Q1&2=20Ex=C3=A9cutable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Début.csv | Bin 53008 -> 0 bytes Note.txt | 79 ---------------------------------------------------- ex1/ex1.sce | 42 ++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 79 deletions(-) delete mode 100644 Début.csv delete mode 100644 Note.txt create mode 100644 ex1/ex1.sce diff --git a/Début.csv b/Début.csv deleted file mode 100644 index 80ce97edb0d9694190335d5b8bcdee8e6a81e03c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 53008 zcmeI52bh-CnfDJx9kGpyIJ#(t5!s1RgEY~Aa~O&PL4$yWwGBtj3pK<(P%U~Mwf)dBoL86;^IEfbN_#5oa2sUvtK^__Iuy!g8$t2 zx%;`#)6QG2s2MP5w|4utbJ?q;#I<#$`JepvkzS=Q7zdj1TK&;VI7fI_Yx|>BYB3ut z6TejU=j~*Sr^FvQeBeOm+Bock8g^aV+F!lJXy|Ky;IDUoqe}=xaz*&xQGuF){f1?k z)M|dqg%AJ3-#5QjZpXZT?LU`7W$v(5YYTvOYYE$=ou7^ESzhHza!v1g?BaTS)W+i8 zA?0S{ty`PH63Mq|RcqqXGHK^_bw2;ImD?>HDRU$G4<6dD`po_lM^Bxa4eXu%+cEvu zs+C0)$2D&9^f431XOdmB|Nh&r5yyXRK(?k8oGVuzEg53n&)lIU3FBK;otu*d|0yrl z|0(-?iqQW9Lw{{w>99-tIq1K=ug=lb&1_cb&$_QZyLvS4Zte2hx>PtH*dECd0rgEie_t>epJX34YK8J-5IxfEN;IctJ7fwbP`r(EJp%=e!g5-t?#dlv5 zeSCAhAOo(?PguWW#mX?D&unhvcxsJW?m-FYxID@*;lmgI&#MpyiLgEW~|_zWDT6 zq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400Q)bECYhIMDy_{nEJ;&)8zlB9TJ z+BWqmo|49MZ;HQ4*YT4nK9$(Vf2eQqCWJ z?#njb!y84Tq(_qnwRzm@d53uwmwUL-@@H*5~tkO^RPg`*L22ncpSi*F3mBKi`fJzP#IS?fiSQ;q{OGA)n`+_t=o* zQ70L0J=<`?bi8XB{||;+w+g#$%Ah*9nxNOJGM(<=euA||m^S9*Jr8`d9;`d1xAb8U(qhGz)aK_Dsy|#+} zi(!{-hMV2iT)#sH!x{S;aL+6e>mH4^S2GxU7_*&w)$Pt z^T>o0??~6f^}_DoH~R4hgpV37eZuh4pBOHF&anI2hI?-?T-tG4Ztw9g7%uH>ICY3& z|DoIR^X(Afg<3&MgvqT& z7wWg=*F81f^~FME3(Z5Xbkn{lZPKw!eMY>vZyriGu*1?A7pJI5eaMmc( OyE?^8??&MVDgGxSj!tI) diff --git a/Note.txt b/Note.txt deleted file mode 100644 index f85e115..0000000 --- a/Note.txt +++ /dev/null @@ -1,79 +0,0 @@ -Superficie=ans(:,2) -Population=ans(:,3) -TauxNatalité=ans(:,4) -TauxMortalité=ans(:,5) -Projection=ans(:,6) -MortalitéInfantile=ans(:,7) -IndiceFécondité=ans(:,8) -Moins15Ans=ans(:,9) -Plus65Ans=ans(:,10) -EsperanceHomme=ans(:,11) -EsperanceFemme=ans(:,12) -RevenuNationalBrut=ans(:,13) - -Ex1 - -1) -Calcul surface terrestre : surfaceTerrestre=cumsum(Superficie) -Calcul Nb d'habitants : nbHabitants=cumsum(Population) -Densité moyenne d'habitants : DensitéMoyenne=mean((surfaceTerrestre/nbHabitants)*1000) - -2) -Afrique : -SurfaceAfrique=ans(1:57,2) -SurfaceAfrique=cumsum(SurfaceAfrique) -=30312.53 - -HabitantsAfrique=ans(1:57,3) -HabitantsAfrique=cumsum(HabitantsAfrique) -=1250.7 - ------------------------------------------------------------------------------------------ -Amérique du Nord : -SurfaceAmeriqueN=ans(58:86,2) -SurfaceAmeriqueN=cumsum(SurfaceAmeriqueN) -=22314.070 - -HabitantsAmeriqueN=ans(58:86,3) -HabitantsAmeriqueN=cumsum(HabitantsAmeriqueN) -=581.88000 - ------------------------------------------------------------------------------------------ -Amérique du Sud : -SurfaceAmeriqueS=ans(87:99,2) -SurfaceAmeriqueS=cumsum(SurfaceAmeriqueS) -=17821 - -HabitantsAmeriqueS=ans(87:99,3) -HabitantsAmeriqueS=cumsum(HabitantsAmeriqueS) -=422.98 - ------------------------------------------------------------------------------------------ -Asie : -SurfaceAsie=ans(100:150,2) -SurfaceAsie=cumsum(SurfaceAsie) -=31879.830 - -HabitantsAsie=ans(100:150,3) -HabitantsAsie=cumsum(HabitantsAsie) -=4494.0500 - ------------------------------------------------------------------------------------------ -Europe : -SurfaceEurope=ans(151:193,2) -SurfaceEurope=cumsum(SurfaceEurope) -=23060.61 - -HabitantsEurope=ans(151:193,3) -HabitantsEurope=cumsum(HabitantsEurope) -=744.33000 - ------------------------------------------------------------------------------------------ -Océanie : -SurfaceOceanie=ans(194:207,2) -SurfaceOceanie=cumsum(SurfaceOceanie) -=8562.6300 - -HabitantsOceanie=ans(194:207,3) -HabitantsOceanie=cumsum(HabitantsOceanie) -=40.780000 diff --git a/ex1/ex1.sce b/ex1/ex1.sce new file mode 100644 index 0000000..91b19b8 --- /dev/null +++ b/ex1/ex1.sce @@ -0,0 +1,42 @@ + +data = csvRead("data.csv") + +Superficie=data(:,2) +Population=data(:,3) +TauxNatalité=data(:,4) +TauxMortalité=data(:,5) +Projection=data(:,6) +MortalitéInfantile=data(:,7) +IndiceFécondité=data(:,8) +Moins15Ans=data(:,9) +Plus65Ans=data(:,10) +EsperanceHomme=data(:,11) +EsperanceFemme=data(:,12) +RevenuNationalBrut=data(:,13) + +surfaceTerrestre=cumsum(Superficie)(207) +nbHabitants=cumsum(Population)(207) + +DensitéMoyenne=mean(((nbHabitants * 10^6) / (surfaceTerrestre * 10^3))) + +SurfaceAfrique=cumsum(data(1:57,2))(57) +HabitantsAfrique=cumsum(data(1:57,3))(57) + +SurfaceAmeriqueN=cumsum(data(58:86,2))(29) +HabitantsAmeriqueN=cumsum(data(58:86,3))(29) + +SurfaceAmeriqueS=cumsum(data(87:99,2))(13) +HabitantsAmeriqueS=cumsum(data(87:99,3))(13) + +SurfaceAsie=cumsum(data(100:150,2))(51) +HabitantsAsie=cumsum(data(100:150,3))(51) + +SurfaceEurope=cumsum(data(151:193,2))(43) +HabitantsEurope=cumsum(data(151:193,3))(43) + +SurfaceOceanie=cumsum(data(194:207,2))(14) +HabitantsOceanie=cumsum(data(194:207,3))(14) + + +DensiteMoyParContinent=[(HabitantsAfrique * 10^6) / (SurfaceAfrique * 10^3), (HabitantsAmeriqueN * 10^6) / (SurfaceAmeriqueN * 10^3), (HabitantsAmeriqueS * 10^6) / (SurfaceAmeriqueS * 10^3), (HabitantsAsie * 10^6) / (SurfaceAsie * 10^3), (HabitantsEurope * 10^6) / (SurfaceEurope * 10^3), (HabitantsOceanie * 10^6) / (SurfaceOceanie * 10^3)] +