Skip to content
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

when x is the identity, f = sign(x) works while g = sign(x) - x fails because arclength is called with invalid signiture #946

Open
macd opened this issue Nov 9, 2024 · 0 comments

Comments

@macd
Copy link
Contributor

macd commented Nov 9, 2024

Here is all the info
_
_ _ ()_ | Documentation: https://docs.julialang.org
() | () () |
_ _ | | __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 1.11.1 (2024-10-16)
/ |_'|||_'_| | Official https://julialang.org/ release
|__/ |

julia> using ApproxFun

(@v1.11) pkg> status ApproxFun
Status ~/julia-versions/dot_julia/environments/v1.11/Project.toml
[28f2ccd6] ApproxFun v0.13.27

julia> x = Fun(identity, -1..1)
Fun(Chebyshev(-1 .. 1), [0.0, 1.0])

julia> f = sign(x) # this works
Fun(Chebyshev(Segment(-1.0, 0.0)) ⨄ Chebyshev(Segment(0.0, 1.0)), [-1.0, 1.0])

julia> g = sign(x) - x
ERROR: MethodError: no method matching arclength(::DomainSets.Point{Float64})
The function arclength exists, but no method is defined for this combination of argument types.

Closest candidates are:
arclength(::ApproxFunBase.EmptyDomain)
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant