So I changed my function so that it returns masterlist at the end, and it still is saying that masterlist is an undefined global variable. Not sure what else to try...
Homework Statement
Hi. So I'm stuck on a few things right now, but the main one is that Python is telling me that one of my variables is not defined. I have stressed over this for about an hour now trying everything to change it, and I cannot seem to find issue.
Homework Equations...
I'm pretty sure that the first matrix (the one for R) is correct. These are my assumptions:
If the line for e1 is at an angle theta from the x-axis (assuming that theta is less than pi/4), then the line for e2 would still be in the first quadrant, therefore all of the values would still be...
1. R\circF\circR-1=S
where F denotes the reflection in the x-axis
where S is the reflection in the line y=x
where R = R\pi/4 : R2 \rightarrow R2
3. An attempt
I have found that the standard matrix for R = [cos\theta sin\theta]...