Jump to content

Template talk:Density

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Density/doc)

Contested deletion

[edit]

This page should not be speedily deleted because... It's NOT a test page. I created it as a template to simplify the math. Aren't templates supposed to make things simpler/easier? --AKLand (talk) 18:50, 9 May 2020 (UTC)[reply]

Erroneous Assumptions Due to Ambiguous Rounding

[edit]

This template is using an approximate conversion to calculate the sqmi from km^2 * 0.386. While this is perfectly acceptable, the value is rounded to the nearest whole number, meaning in this case 10km = 3.86mi is shown as 10km = 4mi. Because of this, while the data behind the calculation is correct (1,000 / 3.86 = 259.067) it appears that 1,000 / 4 = 259, which has led to an incorrect assumption in this template's application elsewhere, such as List of Cities by Population Density and other similar pages, where a simplified calculation is used instead (ignoring the accurate formula and not accounting for the significant figures missing from this template's example) to take the correct Density by km and multiply the value by 2.59 to find an incorrect Density by mi (and then work backward to find an estimated mi^2 from Population / Density by mi).

EX: (as shown in the above page)

Mandaluyong, Philippines:

Population: 425,758

km2: 11

mi2: 4

Density by km: 38,495

Density by mi: 99,703

This uses the input values for Population and km2 (11.06 rounded) to find Density by km, then multiplies that value by 2.59 to find Density by mi, which is then used as the divisor of Population to find mi2 (4.27 rounded). Obviously these calculations should instead be made with accurate data inputs for both area values, but due to the misleading template example they have used oversimplified and inaccurate calculations. IANdG7 (talk) 08:58, 22 December 2024 (UTC)[reply]