You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you search for the roots of a periodic function the result, whilst correct, are sometimes somewhat unexpected:
julia> c =Fun(cos, Fourier())
Fun(Fourier(【0.0,6.283185307179586❫),[-5.622629982202156e-17, 1.2537963267703604e-16, 1.0])
julia>roots(c)
2-element Vector{Float64}:-1.57079632679489661.570796326794897
In this example one of the roots is outside of the interval [0, 2π) and one of the roots within that interval (namely 3π/2) isn't returned. In general I think it would be preferable if roots searches within the 'base' interval and not outside of it. Another option would be to give some sort of 'infinite' vector, but that might unnecessarily overcomplicate things.
The text was updated successfully, but these errors were encountered:
Currently if you search for the roots of a periodic function the result, whilst correct, are sometimes somewhat unexpected:
In this example one of the roots is outside of the interval [0, 2π) and one of the roots within that interval (namely 3π/2) isn't returned. In general I think it would be preferable if
roots
searches within the 'base' interval and not outside of it. Another option would be to give some sort of 'infinite' vector, but that might unnecessarily overcomplicate things.The text was updated successfully, but these errors were encountered: