AllenDowney / ModSimPy

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

Ch 01 velocity magnitude #66

Closed rodigu closed 2 years ago

rodigu commented 2 years ago

In chapter 01, In [57]:

assert abs(v.magnitude - 86.41527642726142) < 1e7

Shouldn't this be:

assert abs(v.magnitude - 86.41527642726142) < 1e-7
AllenDowney commented 2 years ago

Yes. Thanks for letting me know!