Skip to content

Commit 811d5df

Browse files
authored
allow infinite intervals (#262)
1 parent e877844 commit 811d5df

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Spaces/IntervalSpace.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ Space(d::IntervalOrSegment) = Chebyshev(d)
22
Space(d::FullSpace{<:Real}) = Chebyshev(Line())
33

44
# TODO: mode these functions to ApproxFunBase
5-
# Currently, Space(d::Interval) isn't type-stable, so the spaces are
6-
# explicitly listed in these calls.
7-
Fun(::typeof(identity), d::IntervalOrSegment{<:Number}) =
8-
Fun(Chebyshev(d), [mean(d), complexlength(d)/2])
5+
function Fun(::typeof(identity), d::IntervalOrSegment{<:Number})
6+
Fun(Space(d), [mean(d), complexlength(d)/2])
7+
end
98

109
# the default domain space is higher to avoid negative ultraspherical spaces
1110
function Integral(d::IntervalOrSegment, n::Number)

0 commit comments

Comments
 (0)