That said, I don't recall my teachers ever getting too fussy about having us clear our memory; in fact, iirc one of them actually told us to write programs to handle some of the nastier formulas.
Anyway, in my opinion, a good mathematics course should focus less on regurgitation of formulas, and more on problems solving---recognizing which theorems or strategies might apply to a problem and applying them to come up with a result.