Closed acse-jrn22 closed 1 year ago
Hi @acse-5d697a4f, thank you for raising this issue. We have investigated this issue and the error was raised due to the tolerances.
PyBryt was expecting a list whose elements are within 1e-5
relative tolerance from the reference solution, which works for most values in the list. However, the last element in ylist
produced by your code was "nearly zero" -2.7755575615628914e-17
which is not within 1e-5 relative tolerance from 0
. Therefore, we now introduced absolute tolerance 1e-8
to accommodate this case.
Thank you again for raising this issue.
In the exercise 2.2, I'm trying to use the following solution:
However, I'm getting the following PyBryt errors:
Changing the expression
dt = 2. * v0 / (n - 1) / g
todt = 2. * v0 / g / (n - 1)
solves the issue, though. This makes me consider a possible insufficient error tolerance value for the PyBryt checks.