How does the socio-cultural function of magic differ from the way it is perceived? How does the socio-cultural function of magic differ from the way it is perceived? Discuss with reference to the ancient and medieval historical periods