Which Song Dynasty polymath first recorded the observation of magnetic declination?

Answer

Shen Kuo

In his *Dream Pool Essays* in 1088, Shen Kuo detailed how to create a magnetized needle and was among the first to document the discrepancy between where the needle pointed and true north.

Which Song Dynasty polymath first recorded the observation of magnetic declination?
inventioninventorcompass