-
Notifications
You must be signed in to change notification settings - Fork 53
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
RFC: Return n-th derivative of a Taylor1 as a Taylor1 #137
Conversation
Changes Unknown when pulling ef69c86 on PerezHz:jp/derivative into ** on JuliaDiff:master**. |
I like the idea of adding such method. Currently, we have Any opinion on this @dpsanders? |
I think having |
Or use keyword variables like |
Just updated |
Changes Unknown when pulling 021d0c3 on PerezHz:jp/derivative into ** on JuliaDiff:master**. |
Changes Unknown when pulling be9e6a4 on PerezHz:jp/derivative into ** on JuliaDiff:master**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in favor of merging this.
Yet, aside from the sole comment on this PR, there are two other points to note: First, since #136 is merged you have to rebase to current master. Second, there seems to be a problem with (at least) one test in travis; see this; I suggest to correct the failing test (Julia v0.7-dev only), and wait to see if there are other issues with travis.
Any commets @dpsanders?
derivative(n,a) returns a Taylor1 variable; renamed existing derivative(n,a) method as derivativeval
Thanks a lot! I'll wait to the green lights of travis before merging. Maybe also @dpsanders has other comments. |
Thanks; done! 😄
I just corrected this (at least locally; let's see if travis agrees), and also added some tests for the new |
Thank you for all your comments and suggestions! |
1 similar comment
Thanks a lot! I'm merging this! |
Current implementation returns the derivative of a
Taylor1
as aTaylor1
, but higher-order derivatives of aTaylor1
are returned as single values. This PR is intended to instead return higher-order derivatives of aTaylor1
polynomial as aTaylor1
polynomial. In order to do this, this PR adds a new method toderivative(n::Int, a::Taylor1)
and renames the existing method for the value of the n-th derivative of a Taylor1 polynomial asderivativeval
(name suggestions are more than welcome 😛!). This was done in order to get the whole n-th derivative polynomial when it's needed, but the existing method for the value of the n-th derivative is faster when only the numerical value is needed, so it was kept for performance reasons.