The curriculum slowly began to diversify, with many later madaris teaching both the religious and the "secular sciences", such as logic, mathematics and philosophy