-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lamellarPC is precision limited (Trac #484) #330
Comments
Trac update at
probably should be part of the core model conversion process. As I understand it this "works" so maybe only critical and not blocker for the release?
|
Trac update at
|
Trac update at Is this ticket still valid now model has changed? |
Trac update at
Forcing double precision. Model is still a bit cranky, but can't be helped.
|
Adapt the Lamellar PC calculation to use less precision limited math.
That means replacing ww = exp(...) with ww-1 = expm1(...), which can be calculated without loss of precision. Similarly, 1 - cos(x) for cos(x) near zero can be replaced with 2*sin^2^(x).
The alternative is to force lamellarPC to use double or quad precision even if the rest of the calculations are in single precision.
Use compare -longdouble to evaluate a model with quad precision.
Migrated from http://trac.sasview.org/ticket/484
The text was updated successfully, but these errors were encountered: