Skip to content

Commit

Permalink
Merge pull request #569 from vaerksted/master
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
Kolaru committed Jul 23, 2023
2 parents 4c239d5 + ee93bd4 commit 1c0522f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/input_output.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions examples/Range of 2-dimensional functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/intervals/arithmetic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/intervals/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/intervals/trigonometric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/multidim/intervalbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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, α)
Expand Down

2 comments on commit 1c0522f

@Kolaru
Copy link
Collaborator Author

@Kolaru Kolaru commented on 1c0522f Jul 24, 2023

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request updated: JuliaRegistries/General/86795

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.20.10 -m "<description of version>" 1c0522fc984d2631cc777bac0cd891ff2993e23d
git push origin v0.20.10

Please sign in to comment.