-
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
Trying to understand the math of the power function #370
Comments
This is simply Faa di bruno formula no ? Edit: It would work but does not correspond to the differential equation derivation proposed in the docs. |
From my understanding Faa di Bruno's formula simply decompose the n-th derivative of |
Hi! Thanks for asking! Yes, actually it is not difficult. (While I was writing, you were much faster and quoted the reference; example 2.5 is truly useful!) The first thing, is to propose an initial value problem. If you take the derivative of You write |
I hope this minimalistic explanation helps! |
Incidentally, much easier is to derieve the formula for |
Also relevant, a derivation of |
Thank you so much for this explanation! I finally managed to get the derivation. My method was: write the ODE as But anyway, I really appreciate that. |
Another question is the handling of
julia> a = Taylor1(Float64, 1)
1.0 t + 𝒪(t²)
julia> a^1.5
ERROR: DomainError with 1.0 t + 𝒪(t²):
The 0-th order Taylor1 coefficient must be non-zero
to raise the Taylor1 polynomial to a non-integer exponent. But mathematically julia> ForwardDiff.derivative(x -> x^1.5, 0.)
0.0 So could this be made more general? |
Thanks again for asking! Perhaps you are right and we may need to handle these cases more carefully. Yet, I think we do it right (and consistently wrt other programs doing the same, i.e. Let me use your example, julia> using TaylorSeries
julia> t = Taylor1(5)
1.0 t + 𝒪(t⁶)
julia> (0.1+t)^1.5 # expansion of f(x) around 0.1
0.0316227766016838 + 0.47434164902525694 t + 1.1858541225631423 t² - 1.9764235376052368 t³ + 7.4115882660196375 t⁴ - 37.05794133009819 t⁵ + 𝒪(t⁶) Very naively, and perhaps too cryptically, this is encoded in the line you quoted. Going into the details, Since you are playing with this function, please please, have a look into #369. I'm trying to modify how the |
Hi there,
I am reading the documentation of this package which mentioned several recurrence formula for elementary function. However, I couldn't fully understand how they are derived.
https://juliadiff.org/TaylorSeries.jl/latest/background/#Elementary-functions-of-polynomials
For example, could you demonstrate in more detail how you derived
from differential equations theory?
The text was updated successfully, but these errors were encountered: