Unbelievable. What was your starting prompt?? In my attempts it tends to narrate the result of the dialogue instead of the answer to the question (e.g. "You ask 'what is a good approximation of pi?'" --> "She gives you an answer that's good enough to use on a test."
Hold on a second. Is this all real? I am not nearly as impressed by the function composition or arithmetic as by the metacognition and question asking. So the story-Socratic format is how to get interactivity? Really? How many trials is this? Did you really not edit this?