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
rounding errors and numerical inaccuracies sometimes mean that the values of CCh and SSh may be computationally equivalent to zero but may not exactly be zero.This can lead to K being positive and the code raising an error. In order to account for these numerical inaccuracies, we have added a catch clause in the code such that if these values fall below a defined threshold (1e-10 is the value I have been using arbitrarily) then it sets CCh and SSh to be exactly zero.
As suggested by Chris Boon & Adam Hill
rounding errors and numerical inaccuracies sometimes mean that the values of
CCh
andSSh
may be computationally equivalent to zero but may not exactly be zero.This can lead toK
being positive and the code raising an error. In order to account for these numerical inaccuracies, we have added a catch clause in the code such that if these values fall below a defined threshold (1e-10
is the value I have been using arbitrarily) then it setsCCh
andSSh
to be exactly zero.The text was updated successfully, but these errors were encountered: