About 15 years ago during my studies I dreamt of a tablet device with pen input and hand writing recognition for advanced maths. I was writing a lot during my physics lectures but almost no plain text. I would still like to have such a device, but also with a CAS integrated with the handwriting recognition. This would take the pain out of typing stuff into a CAS using obscure syntax.
IMO iPad Pro with the appropriate software would be perfect. However, I think handwriting recognition for math might be too much a niche for developer to focus and polish into software that’s a pleasure to use.
And recognizing math is hard. That is a huge set of symbols (sometimes with semantically meaningful "tiny" variations like doubled up vertical lines on an R) and their size and relative positioning carries a lot of meaning. Handwriting is a walk in the park compared to that.