-
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
Implement sinc #67
Comments
Indeed, it would be a good idea to implement it from scratch! Cc: @blas-ko |
What do you mean by "from scratch"? Isn't the definition given by @PerezHz enough? |
What I mean is that you may write down a differential equation, whose solution is the I agree that the solution of @PerezHz is good enough (though, does it work with |
My solution doesn't work for julia> using TaylorSeries
julia> x, y = set_variables("x y", order=25)
2-element Array{TaylorSeries.TaylorN{Float64},1}:
1.0 x + 𝒪(‖x‖²⁶)
1.0 y + 𝒪(‖x‖²⁶)
julia> sin(pi*x)/(pi*x)
ERROR: AssertionError: b0 != zero(b0)
in /(::TaylorSeries.TaylorN{Float64}, ::TaylorSeries.TaylorN{Float64}) at /Users/Jorge/.julia/v0.5/TaylorSeries/src/TaylorN.jl:496 Would it be feasible to implement sinc for |
Why sin(x*pi) and not sinpi(x)? |
Thanks for bringing this up @freemin7 ! The short answer, I think, is because we haven't implemented |
@PerezHz Sorry for having overlooked this, and getting back too it sooo late. First, the reason that it doesn't work for |
(Edit: I corrected the expression for sinc(x); the way I originally wrote it was mistaken)
Currently (TaylorSeries v0.3.0.), one can implement$sinc(x)=sin(\pi x)/(\pi x)$ for Taylor1 variables manually, doing, for example
But perhaps it would be nice to have this implemented within TaylorSeries without having to do it manually :)
The text was updated successfully, but these errors were encountered: