-
Notifications
You must be signed in to change notification settings - Fork 10
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
Incorrect answer for binary division involving two TaylorScalar
s
#87
Comments
Thanks for mentioning this. Earlier this month, I tried refactoring the code to use a macro to build the instructions to manipulate Taylor polynomials, in order to reduce hard-to-read generated functions everywhere. However, this line /~https://github.com/JuliaDiff/TaylorDiff.jl/blob/main/src/utils.jl#L94 accidentally introduced the error you mentioned. I will fix this soon! |
Thank you @tansongchen ! Yeah, it would be great to fix it soon, since I don't know how much this is currently affecting the higher-order derivatives I am computing ;) |
Solved by 29b1312 |
Thank you @tansongchen ! Can you give me some light on what exactly these part of the code does? Or if you have some external reference that may help me understand this, I will appreciate it! |
Sure! Here are the breakdowns:
The incorrectness happens because I want to replace the first These are hacky and might not be very robust, but did make the functions like |
In addition, could you let me know what specific problems you are currently solving that require higher-order autodiff? |
Thank you for the clarification @tansongchen ! I recently started exploring higher-order AD and nested AD features in Julia. (See for example my recent project SphereUDE.jl, where the goal is to use UDEs to fit directional data with regularization. Sorry the docs are not updated, I will do soon!) I am in a very exploratory phase of applications of higher-order derivatives for other problems, for example to evaluate the smoothness of a given numerical solution. Hopefully I will keep using the library and we can collaborate! |
Thank you for introducing your project, it looks really cool! Sure, let me know if there's anything we can collaborate on. |
Hi!
I encounter this undesirable behaviour as I was doing some TaylorDiff:
It seems that
TaylorDiff.jl
cannot handle very well the division ofTaylorScalar
s, which is even more evident by looking at the following example:This behaviour is the same as when operating directly with TaylorScalars:
I tried to find the origin of this bug but I couldn't find it... I checked on the definition of the ration between TaylorScalars and it seems right, although it is difficult to debug with the
@immutable
macro in the definition.Happy to help debugging this! Definitively something that needs to be solved soon!
The text was updated successfully, but these errors were encountered: