Ex1 Q1&2 Exécutable
This commit is contained in:
parent
bb518e8ef6
commit
04180ec5e0
BIN
Début.csv
BIN
Début.csv
Binary file not shown.
Can't render this file because it contains an unexpected character in line 7 and column 3329.
|
79
Note.txt
79
Note.txt
@ -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
|
42
ex1/ex1.sce
Normal file
42
ex1/ex1.sce
Normal file
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user