Here once again their primary function was usually court astrologer but they were expected to fulfil any functions considered to fall within the scope of the mathematical science much of which we would see as assignments for architects and/or engineers rather than mathematicians.