Very math-like, yes, but most programming isn’t really math or rather, the requirements for the program aren’t, and that’s what you want to stay close to in the code.
https://en.wikipedia.org/wiki/APL_(programming_language)
"A mathematical notation for manipulating arrays was developed by Kenneth E. Iverson, starting in 1957 at Harvard University. In 1960, he began work for IBM where he developed this notation with Adin Falkoff and published it in his book A Programming Language in 1962."
It didn't become an actual (usable) programming language until 1963.