and I can occasionally refer to my notes/prior work.
Say so during those tests. You are encouraged to talk during those tests. "Hey, I wrote something very similar for X, I would look up which library I have to import and how the function is named. Alternatively I would look up the API to get the function name".
It isn't really important if you forgot if you access a vector's size by .size or .length (well you should know that in your language of choice, but you get the point). A good interviewer would then tell you if it's .size / .length to keep you going and not weight it against you.
Same with the example from OP - if you forgot how the 3d rotation matrix around the x-axis looks like... say you would look it up. If you want bonus points say where the "1" is placed, but where you have the "-" is ... not important to your skill as a programmer.
Say so during those tests. You are encouraged to talk during those tests. "Hey, I wrote something very similar for X, I would look up which library I have to import and how the function is named. Alternatively I would look up the API to get the function name".
It isn't really important if you forgot if you access a vector's size by .size or .length (well you should know that in your language of choice, but you get the point). A good interviewer would then tell you if it's .size / .length to keep you going and not weight it against you.
Same with the example from OP - if you forgot how the 3d rotation matrix around the x-axis looks like... say you would look it up. If you want bonus points say where the "1" is placed, but where you have the "-" is ... not important to your skill as a programmer.