The rigors of teaching apparently got to Michigan State University professor John McCarthy Monday.

According to multiple sources, the math teacher stripped naked in the middle of his Calculus 1 class and started shouting obscenities.

Freshman Kyle Hillman told MLive.com that while walking the class through a routine derivative equation, McCarthy said, "Math is all about questions and answers. And Steve Jobs invented the computer, but what do computers do? They ask questions and we answer them."

"He started talking about his colleagues and how they're all actors," Hillman told MLive.com. "He said, 'It's all an act and none of it's real.' Then he ran out of the classroom."

Background story: I was in Calc 1 at Michigan State University, and my teacher was always pretty eccentric, but today he went overboard. Half way through class, he started screaming at us -- swearing left and right. He then started slamming his hands on the window and pressing his face against it, still screaming. Eventually he walked out and down the hallway to the end, all while screaming. He then came back into the classroom and took off his clothes, except for his socks. You know someones [sic] crazy when they leave their socks on lmao. At this point everyone in class ran out. We were literally scared for our lives. The police took about 15 minutes to get here, and during this time he continued walking around screaming.

According to the Huffington Post, one of McCarthy's obscene rants included, "There is no f--king god."

MSU police released the following statement:

The Ingham County 911 Central Dispatch Center received a call at 1:07 p.m. this afternoon about a man in the Michigan State University Engineering Building shouting in the hallway.

MSU police responded and took the man, a university professor, into protective custody and transported him to a local hospital.

No one was injured, and the professor is not being charged with a crime.

MSU's Counseling Center has reached out to students who may have witnessed the incident to offer any support they need.