Skip to content

Update IntervalArithmetic and ForwardDiff dependencies#73

Merged
DimitriAlston merged 6 commits intoPSORLab:masterfrom
DimitriAlston:master
Feb 16, 2026
Merged

Update IntervalArithmetic and ForwardDiff dependencies#73
DimitriAlston merged 6 commits intoPSORLab:masterfrom
DimitriAlston:master

Conversation

@DimitriAlston
Copy link
Member

No description provided.

Comment on lines 36 to 44
function erf(a::Interval{T}) where T
isempty(a) && return a
@round( erf(a.lo), erf(a.hi) )
isempty_interval(a) && return a
convert(Interval{Float64}, interval(erf(a.bareinterval.lo), erf(a.bareinterval.hi)))
end

function erfc(a::Interval{T}) where T
isempty(a) && return a
@round( erfc(a.hi), erfc(a.lo) )
isempty_interval(a) && return a
convert(Interval{Float64}, interval(erfc(a.bareinterval.hi), erfc(a.bareinterval.lo)))
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these are rounding correctly?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intervals are created as Interval{BigFloat} from the error functions and then converted to Interval{Float64}, so that should preserve the original rounding.

isempty(a) && return a
@round(erfinv(a.lo), erfinv(a.hi))
isempty_interval(a) && return a
convert(Interval{Float64}, interval(erfinv(a.bareinterval.lo), erfinv(a.bareinterval.hi)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same rounding comment as above

@test isapprox(y12.cc, 0.534168383326423, atol=1E-8)
end

@testset "Test Error Functions" begin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why were some of these test lines removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were just the same tests repeated multiple times. The remaining tests still test each of the error functions.

@DimitriAlston DimitriAlston merged commit f720593 into PSORLab:master Feb 16, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants