四、請以英文作答:(20 分) The accuracy of magnetic compasses onboard ships can be influenced by both the terrestrial and ship magnetism. Such a physical phenomenon gives rise to either permanent or induced deviations to ships. Please discuss in English how the terrestrial and ship magnetism affect the magnetic compasses onboard vessels.