Ibn SÄ `` nÄ wrote almost 450 treatises on a wide range of subjects , of which around 240 have survived . Ibn SÄ `` nÄ studied medicine under a physician named Koushyar . He wrote almost 450 treatises on a wide range of subjects , of which around 240 have survived .