Skip to content

Commit

Permalink
Doc fix for 1.7 (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani authored Dec 21, 2021
1 parent a865352 commit ecad0cc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "Polynomials"
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
license = "MIT"
author = "JuliaMath"
version = "2.0.18"
version = "2.0.19"

[deps]
Intervals = "d8418881-c3e1-53bb-8760-2df7ec849ed5"
Expand All @@ -17,11 +17,12 @@ RecipesBase = "0.7, 0.8, 1"
julia = "1"

[extras]
DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["LinearAlgebra", "SparseArrays", "OffsetArrays", "SpecialFunctions", "Test"]
test = ["DualNumbers", "LinearAlgebra", "SparseArrays", "OffsetArrays", "SpecialFunctions", "Test"]
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ Also, mixing types can result in unspecific symbols, as this example shows:

```jldoctest natural_inclusion
julia> [1 p; p 1] + [1 2one(q); 3 4] # array{P{T,:x}} + array{P{T,:y}}
2×2 Matrix{Polynomial{Int64, X} where X}:
2×2 Matrix{Polynomial{Int64}}:
Polynomial(2) Polynomial(3 + 2*x)
Polynomial(4 + 2*x) Polynomial(5)
```
Expand Down
1 change: 1 addition & 0 deletions src/pade.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Evaluate the Pade approximant at the given point.
```jldoctest pade
julia> using Polynomials, Polynomials.PolyCompat, SpecialFunctions
julia> p = Polynomial(@.(1 // BigInt(gamma(1:17))));
julia> pade = Pade(p, 8, 8);
Expand Down
8 changes: 7 additions & 1 deletion src/rational-functions/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,10 @@ The residues are found using this formula:
(From page 5-33 of above pdf)
```jldoctest
```jldoctest rational_functions
julia> using Polynomials
julia> s = variable(Polynomial, :s)
Polynomial(1.0*s)
Expand All @@ -496,6 +499,7 @@ julia> pq = (-s^2 + s + 1) // ((s-1) * (s+1)^2)
julia> d,r = residues(pq);
julia> d
Polynomial(0.0)
Expand All @@ -516,8 +520,10 @@ julia> for (λ, rs) ∈ r # reconstruct p/q from output of `residues`
end
end
julia> p′, q′ = lowest_terms(d);
julia> q′ ≈ (s-1) * (s+1)^2 # works, as q is monic
true
Expand Down
5 changes: 4 additions & 1 deletion src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ shows how `Dual` objects of `DualNumbers` may be printed with
parentheses.
```jldoctest
julia> using DualNumbers
julia> using Polynomials, DualNumbers
julia> Polynomial([Dual(1,2), Dual(3,4)])
Polynomial(1 + 2ɛ + 3 + 4ɛ*x)
Expand All @@ -222,6 +223,7 @@ Polynomial(1 + 2ɛ + 3 + 4ɛ*x)
```jldoctest
julia> using DualNumbers, Polynomials
julia> function Base.show_unquoted(io::IO, pj::Dual, indent::Int, prec::Int)
if Base.operator_precedence(:+) <= prec
print(io, "(")
Expand All @@ -232,6 +234,7 @@ julia> function Base.show_unquoted(io::IO, pj::Dual, indent::Int, prec::Int)
end
end
julia> Polynomial([Dual(1,2), Dual(3,4)])
Polynomial((1 + 2ɛ) + (3 + 4ɛ)*x)
```
Expand Down

2 comments on commit ecad0cc

@jverzani
Copy link
Member Author

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 created: JuliaRegistries/General/50992

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 v2.0.19 -m "<description of version>" ecad0cc3c60b625ddeea533c8815a0f4e2da2378
git push origin v2.0.19

Please sign in to comment.