Closed GeoZac closed 6 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.
np.arcos(np.dot(self,other)/self.mag* other.mag)
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.