Skip to content
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

Number of ulps in :accurate mode #374

Open
dpsanders opened this issue Apr 30, 2020 · 0 comments
Open

Number of ulps in :accurate mode #374

dpsanders opened this issue Apr 30, 2020 · 0 comments

Comments

@dpsanders
Copy link
Member

Currently in the :accurate directed rounding mode, we round the results of operations outward by adding or subtracting 1 ulp.

However, different functions at different precisions may have different numbers of ulps that they differ by if they are not correctly rounded.

We should take account of this using a function called e.g. ulp:

ulp(::typeof(sin), x::Float64) = 1
ulp(::typeof(tan), x::Float32) = 2

and call this function to determine how many ulps to round outwards by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant