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

NaNMath.pow derivative throws DomainError #1399

Open
devmotion opened this issue Jan 9, 2025 · 0 comments · May be fixed by #1400
Open

NaNMath.pow derivative throws DomainError #1399

devmotion opened this issue Jan 9, 2025 · 0 comments · May be fixed by #1400

Comments

@devmotion
Copy link
Contributor

On the master branch:

julia> using Symbolics, ForwardDiff, NaNMath

julia> @variables x;

julia> ForwardDiff.derivative(y -> NaNMath.pow(x, y), 0.5)
NaNMath.pow(x, 0.5)*log(x)

julia> substitute(ForwardDiff.derivative(y -> NaNMath.pow(x, y), 0.5), x => -1.0)
ERROR: DomainError with -1.0:
...
@devmotion devmotion linked a pull request Jan 9, 2025 that will close this issue
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 a pull request may close this issue.

1 participant