SAE_S2.04/Exo1/Question1.sce

8 lines
236 B
Scilab
Raw Permalink Normal View History

data = csvRead("data/data.csv");
// surface terrestre mondiale
surface = sum(data(:, 2)* 1000);
// nombre d'habitants mondial
population = sum(data(:, 3)* 1000000);
// densité moyenne d'habitants au km2
densite = population / surface;