A code for many-source simulation
In recent posts , I have described the creation and dynamics of "boson" in the proposed local-realistic model of quantum mechanics. In this post, we shall present a simulation code that implements these rules, allowing the local-realistic emergence of the QM outcome of a double slit experiment. The scenario is that introduced here . Written in the Matlab language, the code would like like that: %%% Simulate an ensemble of Np particles emitted at intervals Nti %%% from either of Ns distinct sources xs(1,...,Ns) having %%% probability Ps(1,...,Ns). Evaluate the frequency of arrivals at %%% a 'screen' after Nt iterations. %%% %%% Parameters: Np,Ns,Nt,Nti,xs,Ps. %%% %%% Evaluate the number of possible bosons for this scenario. B = Ns*(Ns-1)/2; %%% Attribute a label to each possible boson. %%% Bosons generated from the same pair of sources %%% will have the same label. lab = NaN(Ns,Ns); for i = 1:Ns lab(i,i+1:Ns) = [(i-1)*(Ns-i...