New answers tagged

0

RecurrenceTable doesn't like Part or its variants. So use indexed variables as @Alx states in a comment to the question. Like so: theta0 = (1.535/2)(Pi/180); nGaAs = 3.4; nAlAs = 2.9; nlayers = {1, nGaAs, nGaAs, nAlAs, nGaAs, nAlAs, nGaAs, nAlAs, nGaAs, nAlAs, nGaAs, nAlAs, nGaAs}; n = Length[nlayers]; Do[nl[i] = nlayers[[i]], {i, n}] RecurrenceTable[ ...


Top 50 recent answers are included