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

Dual raised to power UInt64(0) gives NaN dualpart #82

Merged
merged 2 commits into from
Mar 18, 2021

Conversation

jwscook
Copy link
Contributor

@jwscook jwscook commented Mar 17, 2021

As it stands with [fa6b7ba4] DualNumbers v0.6.3, I get this behaviour:

julia> using DualNumbers

julia> Dual(2.0, 1)^UInt64(0)
Dual{Float64}(1.0,NaN)

This PR provides a little fix.

@dlfivefifty
Copy link
Collaborator

If you bump the patch version I can merge and tag

@dlfivefifty dlfivefifty merged commit 23cbf38 into JuliaDiff:master Mar 18, 2021
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

Successfully merging this pull request may close these issues.

2 participants