Incidentally this question is widely studied, and it seems that mathematical ability does not correlate as strongly as is commonly thought with programming ability. You have people who can program well, but are not good at maths, and people who are good at maths, but not good at programming.
One study found that the best predictor of whether you will be able to program, is the way in which you think about a problem when you solve it. They found that, if you tend to form a mental model of what you expect to happen when problem solving, you are likely to be able to learn to program decently. Doesn't even matter if your mental model is actually incorrect, what matters is that you form a mental model in the first place.
All types of programming require the formation of a mental model, and all of them require logical thinking. But not all of them require mathematical knowledge and skill.
One study found that the best predictor of whether you will be able to program, is the way in which you think about a problem when you solve it. They found that, if you tend to form a mental model of what you expect to happen when problem solving, you are likely to be able to learn to program decently. Doesn't even matter if your mental model is actually incorrect, what matters is that you form a mental model in the first place.
All types of programming require the formation of a mental model, and all of them require logical thinking. But not all of them require mathematical knowledge and skill.
