Are there any good intro to programming books for people with a strong backround in mathematics, but little experience in coding?
In particular, are there any books that introduce the different features of the language through their use in solving maths problems? I always find that I make the most progress in learning how to code when I am using it for things more closely tied to my interests in mathematics, and more general introductions seem to lack many substantive problems in the early chapters in favor of being more readable to more people.
I am mostly interested in learning some c++, though I would be happy to hear about intros to other languages if they have plenty of fun and engaging excercises. (Though I am definitely more intersted in numerical problems than logic and proofs)