You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to calculate the relative difference between a and b, the subtractive difference is divided by a. This means though that if a has a 0 value, the result is NaN or Infinity.
sebastian-peter
changed the title
QuantityUtil#isEquivalentRel does not consider zero valuesQuantityUtil#isEquivalentRel does not consider zero values
Aug 23, 2022
In order to calculate the relative difference between
a
andb
, the subtractive difference is divided bya
. This means though that ifa
has a0
value, the result isNaN
orInfinity
.PowerSystemUtils/src/main/java/edu/ie3/util/quantities/QuantityUtil.java
Lines 143 to 150 in ff7e4da
The text was updated successfully, but these errors were encountered: