They're useful for a lot more than math, certainly. APL has a lot of world-firsts that wouldn't really make sense for a language useful for nothing more than math; looking at the history of IPSA and similar will probably give you some good ideas. The user 'dTal in this thread is far from giving you an accurate story.