Skip to content

Commit

Permalink
Use CRlibm.setup() (#199)
Browse files Browse the repository at this point in the history
* CRlibm setup

* Import parse
  • Loading branch information
dpsanders committed Feb 5, 2017
1 parent 390c5e4 commit b85d155
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
julia 0.4
CRlibm 0.2.2
CRlibm 0.4
Compat 0.7.11
FixedSizeArrays 0.1.2
ForwardDiff 0.2.0
Expand Down
5 changes: 4 additions & 1 deletion src/ValidatedNumerics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import Base:
precision,
isfinite, isnan,
show, showall,
isinteger, setdiff
isinteger, setdiff,
parse

export
Interval, AbstractInterval,
Expand Down Expand Up @@ -78,6 +79,8 @@ function __init__()

setprecision(Interval, 256) # set up pi
setprecision(Interval, Float64)

CRlibm.setup()
end


Expand Down
3 changes: 2 additions & 1 deletion src/intervals/rounding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Some, like sin(a, RoundDown) are already defined in CRlibm


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


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

0 comments on commit b85d155

Please sign in to comment.