43 lines
1.3 KiB
Scilab
43 lines
1.3 KiB
Scilab
|
|
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)]
|
|
|