-
Notifications
You must be signed in to change notification settings - Fork 146
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
ForwardDiff
fails to compute correct derivative
#676
Comments
Not sure why, but appears to be one more bug fixed by #481, as master branch gives the desired answer:
|
I seem to be on v0.10.36 which is the latest version from what I understand. I guess you have a developer version? |
Yes, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems I've stumbled onto a case where
ForwardDiff.jl
gives incorrect result.I have a function in variable t whose derivative I want to calculate at t=0.0. Using
TaylorSeries.jl
gives correct result while usingForwardDiff.jl
gives incorrect result. This happens only for t=0.0.I know that
ForwardDiff.jl
gives incorrect result because I cross-checked with Mathematica (both by Taylor expansion and direct derivative).The Julia code :
The mathematica code to cross-check :
The text was updated successfully, but these errors were encountered: