diff --git a/NEWS.md b/NEWS.md index ebe50a9f9..64c8d7b44 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,7 +6,7 @@ - The package now supports only Julia v1.3 and later. ### Breaking changes -- Changed from using `FastRounding.jl` to `RoundingEmulator.jl` for the defalt rounding mode. [#370](https://github.com/JuliaIntervals/IntervalArithmetic.jl/pull/370) +- Changed from using `FastRounding.jl` to `RoundingEmulator.jl` for the default rounding mode. [#370](https://github.com/JuliaIntervals/IntervalArithmetic.jl/pull/370) ## v0.15 @@ -293,7 +293,7 @@ v0.1 is the first public release of the package. ### Interval arithmetic - Two methods for interval rounding are available: - (i) narrow/slow (which uses hardward rounding mode changes for `Float64` intervals, and (ii) wide/fast (which does not change the rounding mode) + (i) narrow/slow (which uses hardware rounding mode changes for `Float64` intervals, and (ii) wide/fast (which does not change the rounding mode) - The current interval precision and rounding mode are stored in the `parameters` object - The macro `@interval` generates intervals based on the current interval precision - Trigonometric functions are "nearly" rigorous (for `Float64` intervals, correct rounding is not currently guaranteed) diff --git a/docs/src/input_output.md b/docs/src/input_output.md index 8ac10dc3b..bd7874e0d 100644 --- a/docs/src/input_output.md +++ b/docs/src/input_output.md @@ -73,7 +73,7 @@ 'u' Returns the interval with midpoint as lower bound and radius taken in upward direction. 'C' Returns upper case for Empty, Entire and Nai 'c' Returns lower case for Empty, Entire and Nai - '+' Returns postitve numbers with '+' sign before the number + '+' Returns positive numbers with '+' sign before the number '0' Left-pads the numbers with zeros instead of spaces within the field width - The field width specifies the length of midpoint string. diff --git a/examples/Range of 2-dimensional functions.ipynb b/examples/Range of 2-dimensional functions.ipynb index d1827efc9..6c5e83601 100644 --- a/examples/Range of 2-dimensional functions.ipynb +++ b/examples/Range of 2-dimensional functions.ipynb @@ -356,7 +356,7 @@ "\t\tconsole.log.apply(console, arguments);\n", "\t }\n", "\t},\n", - "\t// a central way to initalize communication\n", + "\t// a central way to initialize communication\n", "\t// for widgets.\n", "\tcommInitializer: function (widget) {\n", "\t widget.sendUpdate = function () {};\n", @@ -435,7 +435,7 @@ " });\n", "\t });\n", "\n", - "\t // coordingate with Comm and redraw Signals\n", + "\t // coordinate with Comm and redraw Signals\n", "\t // XXX: Test using Reactive here to improve performance\n", "\t $([IPython.events]).on(\n", "\t\t'output_appended.OutputArea', function (event, type, value, md, toinsert) {\n", diff --git a/src/intervals/arithmetic.jl b/src/intervals/arithmetic.jl index 7a7f61b2a..08b013366 100644 --- a/src/intervals/arithmetic.jl +++ b/src/intervals/arithmetic.jl @@ -42,7 +42,7 @@ function precedes(a::Interval, b::Interval) end const ≼ = precedes # \preccurlyeq -# strictpreceds +# strictprecedes function strictprecedes(a::Interval, b::Interval) (isempty(a) || isempty(b)) && return true # islessprime(a.hi, b.lo) @@ -361,7 +361,7 @@ end signbit(x::Interval) Returns an interval containing `true` (`1`) if the value of the sign of any element in `x` is negative, containing `false` (`0`) -if any element in `x` is non-negative, and an empy interval if `x` is empty. +if any element in `x` is non-negative, and an empty interval if `x` is empty. # Examples ```jldoctest @@ -402,7 +402,7 @@ const RoundTiesToAway = RoundNearestTiesAway """ round(a::Interval[, RoundingMode]) -Returns the interval with rounded to an interger limits. +Returns the interval with rounded to an integer limits. For compliance with the IEEE Std 1788-2015, "roundTiesToEven" corresponds to `round(a)` or `round(a, RoundNearest)`, and "roundTiesToAway" @@ -437,7 +437,7 @@ Assumes 0 ≤ α ≤ 1. Warning: if the parameter `α = 0.5` is explicitly set, the behavior differs from the default case if the provided `Interval` is not finite, since when `α` is provided `mid` simply replaces `+∞` (respectively `-∞`) by `prevfloat(+∞)` -(respecively `nextfloat(-∞)`) for the computation of the intermediate point. +(respectively `nextfloat(-∞)`) for the computation of the intermediate point. """ function mid(a::Interval{T}, α) where T diff --git a/src/intervals/functions.jl b/src/intervals/functions.jl index aa3ee1c42..3ed787500 100644 --- a/src/intervals/functions.jl +++ b/src/intervals/functions.jl @@ -375,7 +375,7 @@ function nthroot(a::Interval{T}, n::Integer) where T end """ -Calculate `x::Interval mod y::Real` where y != zero(y) and y is not inteval`. +Calculate `x::Interval mod y::Real` where y != zero(y) and y is not interval`. """ function mod(x::Interval, y::Real) @assert y != zero(y) """mod(x::Interval, y::Real) diff --git a/src/intervals/trigonometric.jl b/src/intervals/trigonometric.jl index 6a8f161b4..4b95f534e 100644 --- a/src/intervals/trigonometric.jl +++ b/src/intervals/trigonometric.jl @@ -44,7 +44,7 @@ function sin(a::Interval{T}) where T diam(a) > two_pi(T).lo && return whole_range - # The following is equiavlent to doing temp = a / half_pi and + # The following is equivalent to doing temp = a / half_pi and # taking floor(a.lo), floor(a.hi) lo_quadrant = minimum(find_quadrants(a.lo)) hi_quadrant = maximum(find_quadrants(a.hi)) diff --git a/src/multidim/intervalbox.jl b/src/multidim/intervalbox.jl index 1dfe512f0..bf4a72f00 100644 --- a/src/multidim/intervalbox.jl +++ b/src/multidim/intervalbox.jl @@ -58,7 +58,7 @@ length(X::IntervalBox{N,T}) where {N,T} = N Return a vector of the `mid` of each interval composing the `IntervalBox`. -See `mid(X::Interval, α=0.5)` for more informations. +See `mid(X::Interval, α=0.5)` for more information. """ mid(X::IntervalBox) = mid.(X) mid(X::IntervalBox, α) = mid.(X, α)