JuliaApproximation / ApproxFunBase.jl

Core functionality of ApproxFun
MIT License
12 stars 13 forks source link

Export `\biC` as an alias for `tocanonical` #576

Closed jishnub closed 11 months ago

jishnub commented 11 months ago

After this,

julia> π‘ͺ(0..0.5, 0)
-1.0

julia> π‘ͺ(0..0.5, 0.5)
1.0

This is quite a useful operation, and it's helpful to have a shortcut. The plan is to use this in displaying spaces where the variable needs to be mapped to the canonical domain.

Suggestions for a better symbol are welcome. I have picked this arbitrarily, thinking that it's unlikely to clash with other packages.

Also, this changes the displayed form for Segment to make it round-trippable.

julia> Segment(0, 1)
Segment(0.0, 1.0)
codecov[bot] commented 11 months ago

Codecov Report

Patch coverage: 18.18% and project coverage change: -0.04% :warning:

Comparison is base (c31337a) 27.53% compared to head (e594605) 27.49%. Report is 12 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #576 +/- ## ========================================== - Coverage 27.53% 27.49% -0.04% ========================================== Files 80 80 Lines 8379 8387 +8 ========================================== - Hits 2307 2306 -1 - Misses 6072 6081 +9 ``` | [Files Changed](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation) | Coverage Ξ” | | |---|---|---| | [src/Domain.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL0RvbWFpbi5qbA==) | `44.28% <ΓΈ> (ΓΈ)` | | | [src/Operators/Operator.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL09wZXJhdG9ycy9PcGVyYXRvci5qbA==) | `51.98% <0.00%> (ΓΈ)` | | | [src/Operators/banded/CalculusOperator.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL09wZXJhdG9ycy9iYW5kZWQvQ2FsY3VsdXNPcGVyYXRvci5qbA==) | `17.21% <0.00%> (ΓΈ)` | | | [src/Spaces/SumSpace.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL1NwYWNlcy9TdW1TcGFjZS5qbA==) | `31.98% <0.00%> (ΓΈ)` | | | [src/specialfunctions.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL3NwZWNpYWxmdW5jdGlvbnMuamw=) | `16.77% <0.00%> (ΓΈ)` | | | [src/Operators/general/InterlaceOperator.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL09wZXJhdG9ycy9nZW5lcmFsL0ludGVybGFjZU9wZXJhdG9yLmps) | `23.17% <26.31%> (-0.30%)` | :arrow_down: | | [src/show.jl](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation#diff-c3JjL3Nob3cuamw=) | `62.96% <100.00%> (ΓΈ)` | | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/JuliaApproximation/ApproxFunBase.jl/pull/576/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaApproximation)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.