Mathematics in medieval Islam