opticspy / lightpipes

LightPipes for Python, "Pure Python version"
https://opticspy.github.io/lightpipes/
BSD 3-Clause "New" or "Revised" License
227 stars 52 forks source link

Changed in GaussLaguerre function #77

Closed GubioGL closed 5 months ago

GubioGL commented 1 year ago

71 LG doughnut mode. I detail better in issues #71 the need for this change

I changed only that part, not calculating the R and PHI with the function, because in the part of the phase of the .mgrid_polar function there is a "+ _np.pi", which shouldn't be here.

In order not to change that function, it is simpler to just change it here. I changed from cos( ..) to exponential(..).