-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversion between Fourier spaces #41
Conversion between Fourier spaces #41
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #41 +/- ##
==========================================
+ Coverage 61.80% 64.48% +2.67%
==========================================
Files 14 14
Lines 1063 1115 +52
==========================================
+ Hits 657 719 +62
+ Misses 406 396 -10
... and 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
My understanding is that the result of
should be
(i.e.,
The later would be the result of the intersection. Also
could be
(i.e., (i.e., |
Apologies, that was a copying error on my part. The result is indeed Regarding |
This was the reason why I wrote in my comment could be. However, assuming In any case, even if the domain updating operation cannot be supported or is not possible, I would propose to issue an error, to prevent crashes of stack overflow errors. |
Addition of julia> f1 = Fun(sin, Fourier(0..2pi));
julia> f2 = Fun(x->sin((2/3)x), Fourier(0..3pi));
julia> f1 + f2
Fun(Fourier(【0.0,6.283185307179586❫)⨄Fourier(【0.0,9.42477796076938❫), [-2.754298361189885e-18, 1.0, -9.693192265097112e-18, 1.0])
julia> f2 = Fun(sin, Fourier(0..4pi));
julia> f1 + f2
Fun(Fourier(【0.0,12.566370614359172❫), [-4.295736460310579e-17, -2.6593986539776536e-17, -1.0473104888558003e-16, 2.0]) The latter of these will be periodic for a period of What doesn't work as yet is the conversion of coefficients between |
Could you check that for
|
I think |
c53898d
to
80b8191
Compare
I observed some problems when constructing arrays involving different domains. Here are some examples:
The same if
In my opinion |
Fixes JuliaApproximation/ApproxFun.jl#768. After this, the following works:
WIP to allow domains that aren't multiples of each other.