The answer I get is 39.0625 and not 1. Why is that? I was sure that the #define is supposed to replace any occurrence in the code of XBOXSIZE with 12.5 because: XBOXSIZE = 2*SIGMA = 2*6.25 = 12.5
They are if they are not global. I got mixed up with how to define global variable and I don't want to dive into that now.
There is a good change I haven't fully understood the global concept, that's why I'm posting in the beginner forum but, as I'm not doing my Ph.D. on computer programming but on physics, I don't want to spend time on that know. I will probably, do this later on in my research