Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit b85d155

Browse files
authored
Use CRlibm.setup() (#199)
* CRlibm setup * Import parse
1 parent 390c5e4 commit b85d155

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
julia 0.4
2-
CRlibm 0.2.2
2+
CRlibm 0.4
33
Compat 0.7.11
44
FixedSizeArrays 0.1.2
55
ForwardDiff 0.2.0

src/ValidatedNumerics.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ import Base:
2626
precision,
2727
isfinite, isnan,
2828
show, showall,
29-
isinteger, setdiff
29+
isinteger, setdiff,
30+
parse
3031

3132
export
3233
Interval, AbstractInterval,
@@ -78,6 +79,8 @@ function __init__()
7879

7980
setprecision(Interval, 256) # set up pi
8081
setprecision(Interval, Float64)
82+
83+
CRlibm.setup()
8184
end
8285

8386

src/intervals/rounding.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# Some, like sin(a, RoundDown) are already defined in CRlibm
44

55

6-
import Base: +, -, *, /, sin, sqrt, inv, ^, zero, convert, parse
6+
# import Base: +, -, *, /, sin, sqrt, inv, ^, zero, convert, parse
7+
78

89
# unary minus:
910
-{T<:AbstractFloat}(a::T, ::RoundingMode) = -a # ignore rounding

0 commit comments

Comments
 (0)