Skip to content

Commit cfb4a82

Browse files
authored
fix typos (#486)
* typos * diacritic * spelling
1 parent f5b20cd commit cfb4a82

File tree

15 files changed

+23
-23
lines changed

15 files changed

+23
-23
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ While polynomials of type `Polynomial` are mutable objects, operations such as
116116
`+`, `-`, `*`, always create new polynomials without modifying its arguments.
117117
The time needed for these allocations and copies of the polynomial coefficients
118118
may be noticeable in some use cases. This is amplified when the coefficients
119-
are for instance `BigInt` or `BigFloat` which are mutable themself.
119+
are for instance `BigInt` or `BigFloat` which are mutable themselves.
120120
This can be avoided by modifying existing polynomials to contain the result
121121
of the operation using the [MutableArithmetics (MA) API](https://github.com/jump-dev/MutableArithmetics.jl).
122122

@@ -288,7 +288,7 @@ Polynomial objects also have other methods:
288288
* `gcd`: greatest common divisor of two polynomials.
289289

290290
* `Pade`: Return the
291-
[Pade approximant](https://en.wikipedia.org/wiki/Pad%C3%A9_approximant) of order `m/n` for a polynomial as a `Pade` object.
291+
[Padé approximant](https://en.wikipedia.org/wiki/Pad%C3%A9_approximant) of order `m/n` for a polynomial as a `Pade` object.
292292

293293

294294
## Related Packages

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ square free polynomial. For non-square free polynomials:
366366

367367
* The `Polynomials.Multroot.multroot` function is available for finding the roots of a polynomial and their multiplicities. This is based on work of Zeng.
368368

369-
Here we see `IntervalRootFinding.roots` having trouble isolating the roots due to the multiplicites:
369+
Here we see `IntervalRootFinding.roots` having trouble isolating the roots due to the multiplicities:
370370

371371
```
372372
julia> p = fromroots(Polynomial, [1,2,2,3,3])

src/abstract.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Polynomials.@register MyPolynomial
7373
```
7474
7575
# Implementations
76-
This will implement simple self-conversions like `convert(::Type{MyPoly}, p::MyPoly) = p` and creates two promote rules. The first allows promotion between two types (e.g. `promote(Polynomial, ChebyshevT)`) and the second allows promotion between parametrized types (e.g. `promote(Polynomial{T}, Polynomial{S})`).
76+
This will implement simple self-conversions like `convert(::Type{MyPoly}, p::MyPoly) = p` and creates two promote rules. The first allows promotion between two types (e.g. `promote(Polynomial, ChebyshevT)`) and the second allows promotion between parameterized types (e.g. `promote(Polynomial{T}, Polynomial{S})`).
7777
7878
For constructors, it implements the shortcut for `MyPoly(...) = MyPoly{T}(...)`, singleton constructor `MyPoly(x::Number, ...)`, conversion constructor `MyPoly{T}(n::S, ...)`, and `variable` alternative `MyPoly(var=:x)`.
7979
"""

src/common.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Weights may be assigned to the points by specifying a vector or matrix of weight
8484
8585
When specified as a vector, `[w₁,…,wₙ]`, the weights should be
8686
non-negative as the minimization problem is `argmin_β Σᵢ wᵢ |yᵢ - Σⱼ
87-
Vᵢⱼ βⱼ|² = argmin_β || √(W)⋅(y - V(x)β)||²`, where, `W` the digonal
87+
Vᵢⱼ βⱼ|² = argmin_β || √(W)⋅(y - V(x)β)||²`, where, `W` the diagonal
8888
matrix formed from `[w₁,…,wₙ]`, is used for the solution, `V` being
8989
the Vandermonde matrix of `x` corresponding to the specified
9090
degree. This parameterization of the weights is different from that of
@@ -230,7 +230,7 @@ Return the critical points of `p` (real zeros of the derivative) within `I` in s
230230
* `endpoints::Bool`: if `true`, return the endpoints of `I` along with the critical points
231231
232232
233-
Can be used in conjuction with `findmax`, `findmin`, `argmax`, `argmin`, `extrema`, etc.
233+
Can be used in conjunction with `findmax`, `findmin`, `argmax`, `argmin`, `extrema`, etc.
234234
235235
## Example
236236
```
@@ -1110,7 +1110,7 @@ end
11101110
return `u` the gcd of `p` and `q`, and `v` and `w`, where `u*v = p` and `u*w = q`.
11111111
"""
11121112
uvw(p::AbstractPolynomial, q::AbstractPolynomial; kwargs...) = uvw(promote(p,q)...; kwargs...)
1113-
uvw(p1::P, p2::P; kwargs...) where {P <:AbstractPolynomial} = throw(ArgumentError("uvw not defind"))
1113+
uvw(p1::P, p2::P; kwargs...) where {P <:AbstractPolynomial} = throw(ArgumentError("uvw not defined"))
11141114

11151115
"""
11161116
div(::AbstractPolynomial, ::AbstractPolynomial)

src/pade.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export Pade
2222
Return Pade approximation of polynomial.
2323
2424
# References
25-
[Pade Approximant](https://en.wikipedia.org/wiki/Pad%C3%A9_approximant)
25+
[Pade approximant](https://en.wikipedia.org/wiki/Pad%C3%A9_approximant)
2626
"""
2727
struct Pade{T <: Number,S <: Number}
2828
p::Union{Poly{T}, Polynomial{T}}

src/polynomials/ImmutablePolynomial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ As the degree of the polynomial (`+1`) is a compile-time constant,
2222
several performance improvements are possible. For example, immutable
2323
polynomials can take advantage of faster polynomial evaluation
2424
provided by `evalpoly` from Julia 1.4; similar methods are also used
25-
for addtion and multiplication.
25+
for addition and multiplication.
2626
2727
However, as the degree is included in the type, promotion between
2828
immutable polynomials can not promote to a common type. As such, they

src/polynomials/LaurentPolynomial.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Base.promote_rule(::Type{P},::Type{Q}) where {T, X, P <: LaurentPolynomial{T,X},
126126
Base.promote_rule(::Type{Q},::Type{P}) where {T, X, P <: LaurentPolynomial{T,X}, S, Q <: StandardBasisPolynomial{S,X}} =
127127
LaurentPolynomial{promote_type(T, S),X}
128128

129-
# need to add p.m[], so abstract.jl method isn't sufficent
129+
# need to add p.m[], so abstract.jl method isn't sufficient
130130
# XXX unlike abstract.jl, this uses Y variable in conversion; no error
131131
# Used in DSP.jl
132132
function Base.convert(::Type{LaurentPolynomial{S,Y}}, p::LaurentPolynomial{T,X}) where {T,X,S,Y}
@@ -272,7 +272,7 @@ end
272272

273273

274274
##
275-
## ---- Conjugation has different defintions
275+
## ---- Conjugation has different definitions
276276
##
277277

278278
"""

src/polynomials/Poly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Base.eltype(P::Type{<:Poly{T,X}}) where {T, X} = P
4646
_eltype(::Type{<:Poly{T}}) where {T} = T
4747
_eltype(::Type{Poly}) = Float64
4848

49-
# when interating over poly return monomials
49+
# when iterating over poly return monomials
5050
function Base.iterate(p::Poly, state = firstindex(p))
5151
firstindex(p) <= state <= lastindex(p) || return nothing
5252
return p[state] * Polynomials.basis(p,state), state+1

src/polynomials/factored_polynomial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct FactoredPolynomial{T <: Number, X} <: StandardBasisPolynomial{T, X}
5858
end
5959
end
6060

61-
# There are idiosyncracies with this type
61+
# There are idiosyncrasies with this type
6262
# * unlike P{T}(...) we allow T to widen here if the roots of the polynomial Polynomial(coeffs) needs
6363
# a wider type (e.g. Complex{Float64}, not Float64)
6464
# * the handling of Inf and NaN, when a specified coefficient, is to just return a constant poly (Inf or NaN)

src/polynomials/multroot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ end
167167
168168
Find a *pejorative* *root* for `p` given multiplicity structure `ls` and initial guess `zs`.
169169
170-
The pejorative manifold for a multplicity structure `l` is denoted `{Gₗ(z) | z ∈ Cᵐ}`. A pejorative
170+
The pejorative manifold for a multiplicity structure `l` is denoted `{Gₗ(z) | z ∈ Cᵐ}`. A pejorative
171171
root is a least squares minimizer of `F(z) = W ⋅ [Gₗ(z) - a]`. Here `a ~ (p_{n-1}, p_{n-2}, …, p_1, p_0) / p_n` and `W` are weights given by `min(1, 1/|aᵢ|)`. When `l` is the mathematically correct structure, then `F` will be `0` for a pejorative root. If `l` is not correct, then the backward error `‖p̃ - p‖_w` is typically large, where `p̃ = Π (x-z̃ᵢ)ˡⁱ`.
172172
173173
This follows Algorithm 1 of [Zeng](https://www.ams.org/journals/mcom/2005-74-250/S0025-5718-04-01692-8/S0025-5718-04-01692-8.pdf)

0 commit comments

Comments
 (0)