|
|
|
|
|
by pdeffebach
2070 days ago
|
|
> This would allow a `plot` function in Python, originally written for the float data type, to also work for float-like (quacks like a duck) data types, like `Decimal`. This might come with sacrificed performance. If you want a different implementation for a different data type to get the best performance, writing one method makes that hard. > The `Measurements` author very specifically (if I understand this right) implemented a `plot` functionality. This is a good point. But in that example, note that `Measurements` also works with all of differential equations, and they didn't implement any differential equations specific code, unlike as you pointed out with `plot`. The fact that uncertainty propagates through a differential equation solver is pretty impressive, imo. |
|