Thanks for your response,
This code is quite untidy because I was trying a lot of things to fix the problem. If you wish to tidy it up you can remove the graphs as they aren't really relevant at this point.
The key part is the vector Au1. Each of the four parts of Au1 should correspond directly to one of the equations I have entered brute force into mathematica. The correspondence is as follows:
Au1[[1]] = t3 [kx,l]
Au1[[2]] = t4 [kx,l]
Au1[[3]] = r1 [kx,l]
Au1[[4]] = r2 [kx,l]
As you can see from the tables of values for each Au1[[1]] is the only one that actually equals the values from t3 (to within machine error) For Au1[[2]] the values for real and imaginary parts are flipped below kx = 1. While for Au1[[3]] and Au1[[4]] there is both a flipping of real and imaginary parts AND a complete flipping of the values between the two equations below kx = 1. That is all of the values of Au1[[3]] for kx < 1 should be the values of Au1[[4]] for kx < 1.
For the purposes of this troubleshooting, I am assuming that the equations for t3, t4, r1, and r2 are completely correct. They give me the correct graphs in any case.
I really need the Mathematica calculated parts to be correct because I have to make this program more complicated and I won't always have equations I can take from literature.
Attachments: