Found in 3 comments on Hacker News
systemsdude · 2020-11-19 · Original thread
I'm currently working through Naive Lie Theory https://www.amazon.com/Naive-Theory-Undergraduate-Texts-Math... by Stillwell and there's a lot about quaternions in the first chapter, including their standard matrix representation. You'd need to be familiar with some group theory to fully understand the 3D rotations but the matrix operations are clear enough to start coding with, I think.
earthicus · 2018-10-21 · Original thread
Stillwell[1] discusses quaternions in chapters 1 & 2, although the meat and potatoes of the book is more generally about lie groups and lie algebras. It's pitched at a lower level than most books on this topic by restricting attention to the classical matrix groups.

[1]https://www.amazon.com/Naive-Theory-Undergraduate-Texts-Math...

Fresh book recommendations delivered straight to your inbox every Thursday.