Closed Jilhg closed 3 days ago
Would you mind making a PR?
I can do, what value of atol
should I choose? 1e-15
? Feels a bit hacky, I guess there will always be some x
that are not covered. I could also overload indomain
specifically for PeriodicSegments
?
I noticed that for some periodic segments evaluating a function at 0 always produces 0. For instance
has the following output
This is caused because 0 is apparently not contained in the periodic segment:
which is checked before function evaluation (ApproxFunFourier.jl, l.267).
The following code in Domains.jl is responsible for this behavior:
If
x=0
thenfromcanonical(d,y)= 1.1102230246251565e-16
and thusisapprox
returns false. I guess one way of solving this issue would be to specify anatol=...
inisapprox
.