summaryrefslogtreecommitdiff
path: root/1475/CH8/EX8.1/Example_8_1.sce
blob: ed5b131a420bfa02630e457dd9a7f8a6796c5b0c (plain)
1
2
3
4
5
6
7
8
9
// Example 8.1 From the following data
clc;
clear;
P1=[1500 3000 5000 500];
D1=[45 15 30 12];
P2=[6000 5000 6000 3000];
D2=[150 20 30 54];
disp(sum(D2)*1000/sum(P2),"Crude Death Rate for Town II per thousand = ",sum(D1)*1000/sum(P1),"Crude Death Rate for Town I per thousand =");
disp((D2./P2)*1000,"Specific Death Rate for Town II",(D1./P1)*1000,"Specific Death Rate for Town I");