In coding the math, how would you calculate how many times the size of one cities population is to another? Like Quebec. pop to Copenhagan pop?

317 Views Asked by At

I have a Quebec population : $8,164,361$

And Copenhagen population : $775,033$


How would I be able to determine the how many times the size of one is to another?

For example I know for Quebec the inclusive inverse would read:

Quebec is $1.0$ times the size of Quebec

and then for two other city populations it should read like:

Beijing is $31.56334$ times the size of Washington D.C.

I imagine this is very simple math. Would I just divide one by the other if so which one goes in the denominator and numerator? Or is there something more to this than meets the eye.

Thank you

2

There are 2 best solutions below

0
On

City $A$'s population is $\dfrac{p_A}{p_B}$ times the size of that of city $B$, where $p_A$ and $p_B$ denote the population of cities $A$ and $B$ respectively.

6
On

The simpler and standard way is to calculate the following ratio

$$\frac{8164361}{775033}\approx 10.5$$

and say that Quebec, as population, is 10 times larger than Copenaghen.

As an alternative we can take for example

$$\frac{8164361-775033}{8164361}\approx 0.905=90.5\%$$

and say that Copenaghen has $90.5\%$ poplation less than Quebec or

$$\frac{8164361-775033}{775033}\approx 9.53=953\%$$

and say that Quebec has 953% more pupulation than Copenaghen.