See [numpy's implementation](https://numpy.org/doc/2.1/reference/generated/numpy.cos.html) as an example. See if there's a way to do this once since AWU and AWF will use the same things
See numpy's implementation as an example. See if there's a way to do this once since AWU and AWF will use the same things