From Masha' Allah to Kepler: Theory and Practice in Medieval and Renaissance Astrology