I have recently installed Mathematica 9 on my macbook pro, os version 10.6.8. As you can see in the minimal example notebook you can download here:
https://dl.dropbox.com/u/1163801/crashing_notebook.nb
when I simply run a sequence of inputs everything is fine, bit as soon as I put exactly the same inputs into a function of two variables and call this function with the same parameters used before the UI crashes. This doesn't happen for all functions, but for this one it does. Any ideas?
Any help would be very much appreciated.
PS: Don't ask why I define a constant to be a function of S, this will be used as a function of S later.

Nas a variable in the function definition. It is highly recommended that you don't start your symbol names with a capital letter to avoid these conflicts, and care must be taken if you choose to ignore the recommendation. It is especially important when you are only using a single letter. – rcollyer Jan 16 at 15:55f[x_, N_] := N[x, N]. With this definition,f[Pi, 20]evaluates to20[π, 20]. Not what you would want, is it? Your code does something like that. – m_goldberg Jan 16 at 16:47Nis coloured green in the function, which can be a warning sign. – Szabolcs Jan 16 at 18:29