Question: Translate the following Igor code to Python: #pragma rtGlobas-3 // Use modern global access method and strict wave access. Function Schrodinger_wells(UO, mass, width, spacer, Nrepeats,
Translate the following Igor code to Python:


#pragma rtGlobas-3 // Use modern global access method and strict wave access. Function Schrodinger_wells(UO, mass, width, spacer, Nrepeats, dx,plotfigs,scalefactor, name) // solves 1D schrodinger equation for quantum wells Variable UO Variable width, spacer Variable mass Variable Nrepeats Variable dx Variable plotfigs Variable scalefactor string name // height of well in ev // well width and spacer (barrier) width in Angstrom // effective mass in units of electron mass m0 // number of repeats // mesh step in Angstrom //1 to plot figures, O no figures // for plotting psi sq nalize va // make potential Variable cellpoints round( (spacer+width)/dx) make /o (cellpoints*Nrepeats+round(spacer/dx),1) potential setscale /P x, 0, dx, potential Variable i for (i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
