Skip to content

Commit 5df7fe9

Browse files
authored
Correct some typos (#491)
Signed-off-by: Alexander Seiler <[email protected]>
1 parent ddd4340 commit 5df7fe9

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Polynomial objects also have other methods:
319319

320320
## Legacy code
321321

322-
As of v0.7, the internals of this package were greatly generalized and new types and method names were introduced. For compatability purposes, legacy code can be run after issuing `using Polynomials.PolyCompat`.
322+
As of v0.7, the internals of this package were greatly generalized and new types and method names were introduced. For compatibility purposes, legacy code can be run after issuing `using Polynomials.PolyCompat`.
323323

324324
## Contributing
325325

src/compat.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## We have renamed the MATLAB/numpy type names to more Julian names
22
## How to keep the old names during a transition is the question.
33
## The plan: keep these to ensure underlying changes are not disruptive
4-
## For now we ensure compatability by defining these for `Poly` objects such
4+
## For now we ensure compatibility by defining these for `Poly` objects such
55
## that they do not signal a deprecation (save polyfit)),
66
## but do for other `AbstractPolynomial` types.
77
## At v1.0, these will be opt-in via `using Polynomials.PolyCompat`

src/polynomials/standard-basis.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Base.gcd(::Val{:noda_sasaki}, p, q; kwargs...) = gcd_noda_sasaki(p,q; kwargs...)
284284
285285
Greatest common divisor of two polynomials.
286286
Compute the greatest common divisor `d` of two polynomials `a` and `b` using
287-
the Euclidian Algorithm with scaling as of [1].
287+
the Euclidean Algorithm with scaling as of [1].
288288
289289
References:
290290

src/rational-functions/fit.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Fit a rational function of the form `pq = (a₀ + a₁x¹ + … + aₘxᵐ) / (1
3333
3434
The [RationalApproximations](https://github.com/billmclean/RationalApproximations) package also has implementations of the AAA algorithm.
3535
36-
A python libary, [polyrat](https://github.com/jeffrey-hokanson/polyrat), has implementations of other algorithms.
36+
A python library, [polyrat](https://github.com/jeffrey-hokanson/polyrat), has implementations of other algorithms.
3737
3838
## Example
3939
```

src/rational-functions/plot-recipes.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Plot recipe
2-
## define a hueristic to work around asymptotes
2+
## define a heuristic to work around asymptotes
33
## just sort of successful
44
@recipe function f(pq::AbstractRationalFunction{T}, a=nothing, b=nothing) where {T}
55

test/ChebyshevT.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ end
201201
@test degree(truncate(p - derivative(integrate(p)), atol=1e-8)) <= 0
202202
end
203203

204-
## issue SpeicalPolynomials #56
204+
## issue SpecialPolynomials #56
205205
coeffs = [3 // 4, -2 // 1, 1 // 1]
206206
p = ChebyshevT(coeffs)
207207
@test derivative(p) convert(ChebyshevT, derivative(convert(Polynomial, p)))

test/Poly.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Tests for compatiability with the old form
1+
## Tests for compatibility with the old form
22
# Create a separate module so that include(file) doesn't import PolyCompat to Main
33
module PolyTests
44

@@ -17,7 +17,7 @@ using ..SpecialFunctions
1717
a = Polynomial(1 .//convert(Vector{BigInt},map(gamma,BigFloat(1):BigFloat(17))),"x")
1818
@test_throws UndefVarError Pade(a,8,8)
1919

20-
# must load the compatability module to have access
20+
# must load the compatibility module to have access
2121
using Polynomials.PolyCompat
2222

2323
## the methods `polyval`, `polyint` and `polyder` are only for the

test/StandardBasis.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ end
187187
# poly powers
188188
@test p^2 == p * p
189189

190-
# evalution
190+
# evaluation
191191
@test p(s) == a + b * s + c * s * s
192192
@test p(c) == a + b * c + c * c * c
193193

@@ -237,7 +237,7 @@ end
237237
# poly powers
238238
@test p^2 == p * p
239239

240-
# evalution
240+
# evaluation
241241
@test p(s) == a + b * s + c * s * s
242242
@test p(c) == a + b * c + c * c * c
243243

@@ -286,7 +286,7 @@ end
286286
# poly powers
287287
@test_throws MethodError p^2 == p * p # Ok, no * for T
288288

289-
# evalution
289+
# evaluation
290290
@test p(s) == a + b * s + c * s * s
291291
@test_throws MethodError p(c) == a + b * c + c * c * c # OK, no b * c
292292

@@ -340,7 +340,7 @@ end
340340
@test p^2 == p * p
341341

342342

343-
# evalution
343+
# evaluation
344344
@test p(s) == a + b * s + c * s * s
345345
@test p(c) == a + b * c + c * c * c
346346

@@ -1133,7 +1133,7 @@ end
11331133
@test1] + [1 λ] ==+1) .* [1 1] # (λ+1) not a number, so we broadcast
11341134
end
11351135

1136-
# issue 312; using mixed polynomial types withing arrays and promotion
1136+
# issue 312; using mixed polynomial types within arrays and promotion
11371137
P′ = Polynomial
11381138
r,s = P′([1,2], :x), P′([1,2],:y)
11391139
function _test(x, T,X)

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using OffsetArrays
1111
@testset "Standard basis" begin include("StandardBasis.jl") end
1212
@testset "ChebyshevT" begin include("ChebyshevT.jl") end
1313
@testset "Rational functions" begin include("rational-functions.jl") end
14-
@testset "Poly, Pade (compatability)" begin include("Poly.jl") end
14+
@testset "Poly, Pade (compatibility)" begin include("Poly.jl") end
1515
if VERSION >= v"1.9.0-"
1616
@testset "MutableArithmetics" begin include("mutable-arithmetics.jl") end
1717
end

0 commit comments

Comments
 (0)