Do you think that negative attitude would change if you told them you are working on math problems? I don't think much, the attitude is there for a deep reason. If people do not identify with actions of their military, they won't like that you're helping the military. If they do identify, they would support you even if were working on actual bombs.