@@ -323,23 +323,22 @@ end
323
323
324
324
# The function is unbounded at the bounded edges of the domain
325
325
restricted_functions1 = Dict (
326
- :log => [ 0 , Inf ] ,
327
- :log2 => [ 0 , Inf ] ,
328
- :log10 => [ 0 , Inf ] ,
329
- :atanh => [ - 1 , 1 ]
326
+ :log => Interval {Float64} ( 0.0 , Inf ) ,
327
+ :log2 => Interval {Float64} ( 0.0 , Inf ) ,
328
+ :log10 => Interval {Float64} ( 0.0 , Inf ) ,
329
+ :atanh => Interval {Float64} ( - 1.0 , 1.0 )
330
330
)
331
331
332
332
# The function is bounded at the bounded edge(s) of the domain
333
333
restricted_functions2 = Dict (
334
- :sqrt => [ 0 , Inf ] ,
335
- :asin => [ - 1 , 1 ] ,
336
- :acos => [ - 1 , 1 ] ,
337
- :acosh => [ 1 , Inf ]
334
+ :sqrt => Interval {Float64} ( 0.0 , Inf ) ,
335
+ :asin => Interval {Float64} ( - 1.0 , 1.0 ) ,
336
+ :acos => Interval {Float64} ( - 1.0 , 1.0 ) ,
337
+ :acosh => Interval {Float64} ( 1.0 , Inf )
338
338
)
339
339
340
340
# Define functions with restricted domains on DecoratedInterval's:
341
341
for (f, domain) in restricted_functions1
342
- domain = interval (domain... )
343
342
@eval function Base. $ (f)(xx:: DecoratedInterval{T} ) where T
344
343
x = interval (xx)
345
344
r = $ (f)(x)
@@ -350,7 +349,6 @@ for (f, domain) in restricted_functions1
350
349
end
351
350
352
351
for (f, domain) in restricted_functions2
353
- domain = interval (domain... )
354
352
@eval function Base. $ (f)(xx:: DecoratedInterval{T} ) where T
355
353
x = interval (xx)
356
354
r = $ (f)(x)
0 commit comments