I have a code that I want to turn into a function.
I know modules and have seen this post. The problem is that my code is quite long and contains all sorts of functions of the form
fun(x_):=..., numerical integrations, eigensystems and so on, and it seems
Module does not handle it very well (or I just do not use it properly).
I also looked here for a description of how to call a notebook from another notebook. That should work, but I was wondering if there was any way to treat the notebook like a function with inputs I can pass, similar to most other programming languages.