Hi!
I create atan and atan2 nodes and add this math function to custom math expression node. All work normally. Can you show your expression with atan function?