I think your teacher is immoral to use his authority to coerce what students think or its expression. It gets tricky because in early grades at least, teachers actively try to instill values. Many are still pushing to channel student energy into social justice and so on at later grades too. More than a few go into teaching expressly to 'shape' the next generation. Personally I find that reprehensible. Respecting autonomy is paramount. But I can see how for a religious person with a fundamentalist bent responding in a way that is respectful to you would be very difficult. This is one place where fearing God is clearly detrimental to doing the right thing. A religious dick isn't going to change his spots just because you put him in a classroom.
I teach but I make it a point to avoid sharing my agnosticism or atheism. Tolerance toward my personal views should not be a prerequisite to learning mathematics. They are not there to be converted by me. Their minds are not my play thing nor are they under my jurisdiction. I do 'keep the peace' in the classroom, but that doesn't extend to policing their opinions which offend me. So long as they're on task, that's their business.
I teach but I make it a point to avoid sharing my agnosticism or atheism. Tolerance toward my personal views should not be a prerequisite to learning mathematics. They are not there to be converted by me. Their minds are not my play thing nor are they under my jurisdiction. I do 'keep the peace' in the classroom, but that doesn't extend to policing their opinions which offend me. So long as they're on task, that's their business.