Scaling functions for O(4) in three dimensions