How to fix Recursion Function overflow error?
This program is supposed to calculate the varying stopping power as a proton travels through aluminium for 20000 slices of 0.025µm of aluminium. The stopping power changes per slice, so the stopping power and subtraction of energy has to be calculated per slice. I get a stack overflow error even after attempting to increase the… Read More How to fix Recursion Function overflow error?