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
Here is a minimal example for reproducing the error
using ApproxFun
g = Fun(exp, Chebyshev(0..1))
f = Fun(x -> x-0.5, Chebyshev(0..1))
h = g/f
ApproxFun transforms the domain of f to the canonical domain of the space, splits the space domain at the roots and then attempts to call setdomain(space(f), d) where space(f) is a PiecewiseSpace and d the original domain. This is where the error occurs. It seems what is needed is a function which will map the PiecewiseSpace on the canonical domain to the original domain. While implementing such a transformation is not complicated, I currently lack the overview of the JuliaApproximation ecosystem and future plans to know where to best put this logic and which interfaces it needs to plug into. If you could point me into the right direction, I am happy to make a PR for this.
Remark: For the caseg = 1, the splitting of the domain of f is performed on the original domain without converting to the canonical space and no exception is thrown.
Temporary Fix
For anyone else encountering this issue: A temporary fix is to transform the problem to the canonical domain of your function space by hand.
The text was updated successfully, but these errors were encountered:
For a
Fun
with roots in its domain, division fails with the error message:Here is a minimal example for reproducing the error
ApproxFun transforms the domain of
f
to the canonical domain of the space, splits the space domain at the roots and then attempts to callsetdomain(space(f), d)
wherespace(f)
is aPiecewiseSpace
andd
the original domain. This is where the error occurs. It seems what is needed is a function which will map thePiecewiseSpace
on the canonical domain to the original domain. While implementing such a transformation is not complicated, I currently lack the overview of the JuliaApproximation ecosystem and future plans to know where to best put this logic and which interfaces it needs to plug into. If you could point me into the right direction, I am happy to make a PR for this.Remark: For the case
g = 1
, the splitting of the domain off
is performed on the original domain without converting to the canonical space and no exception is thrown.Temporary Fix
For anyone else encountering this issue: A temporary fix is to transform the problem to the canonical domain of your function space by hand.
The text was updated successfully, but these errors were encountered: