Unrealistic expectation on size of err_u #4410
Labels
L: Media
Issue addresses Modelica.Media
L: ModelicaTest
Issue addresses ModelicaTest, ModelicaTestConversion4 or ModelicaTestOverdetermined
It appears problematic that
ModelicaTest.Media.TestAllProperties.PartialMediumFunctions
has a singleeps
constant used to define absolute error tolerance different media properties.ModelicaStandardLibrary/ModelicaTest/Media.mo
Line 104 in 7a2a5ed
Take
ModelicaTest.Media.TestAllProperties.CO2
for example. The expected value ofmedium.u
is 156518.651861815, and the value ofeps
is 1e-10. This means that the assertion thaterr_u < eps
requiresmedium.u
to have a relative error smaller than 6e-16. Considering that double precision is the de facto standard (the specification only has a recommendation regarding the range, not the precision ofReal
), this does not seem realistic.The text was updated successfully, but these errors were encountered: