AllenDowney / ModSimPy

Text and supporting code for Modeling and Simulation in Python
https://allendowney.github.io/ModSimPy/
MIT License
835 stars 1.77k forks source link

diff_angle #11

Closed GeoZac closed 6 years ago

GeoZac commented 7 years ago

I had to grab some simple cart2pol code for something,when I came across this repo ,and saw this https://github.com/AllenDowney/ModSimPy/blob/49073fbf9b890181992466a15932c049a36b0bc4/code/modsim.py#L929

I checked the codes and saw this is going to be tricky as the mag function above it already has the unit bound to it,else it would have just been np.arcos(np.dot(self,other)/self.mag* other.mag) Just pointing it out.