As someone who never learned a lot of mathematics (generally only arithmetic) and never learned computer science in a formal frame.

I emphasize that I don’t mean to ask about a “function” in programming (“procedure”/”method”), rather only about the difference between the formal definition of function in mathematics to the formal definition of function in (theoretical) computer science, if at all there is any such difference (unless computer science don’t share the exact definition common in mathematics).

**Is there any difference between a function in mathematics to a function in computer science?**