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

exp_generic has low precision for BigFloats #44

Open
andreasnoack opened this issue Aug 16, 2020 · 1 comment
Open

exp_generic has low precision for BigFloats #44

andreasnoack opened this issue Aug 16, 2020 · 1 comment

Comments

@andreasnoack
Copy link
Contributor

julia> _x = range(-10, stop=10, length=200);

julia> maximum(abs, (x -> ExponentialUtilities.exp_generic(x)/exp(x) - 1).(_x))/eps(Float64)
10.5

julia> maximum(abs, (x -> ExponentialUtilities.exp_generic(x)/exp(x) - 1).(big.(_x)))/eps(BigFloat)
3.990156146456241410115233813819434452173187e+42

The number of terms in the Padé approximant probably needs to depend on the precision.

@jarlebring
Copy link
Contributor

In the meantime there is research in the direction of arbitrary precision matrix exponential which might be a better basis than Higham 2005. https://epubs.siam.org/doi/10.1137/18M1228876

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

2 participants