Skip to content

Commit dad38c3

Browse files
committed
Completed the example in the roots() function for LaurentPolynomial.
1 parent d11546a commit dad38c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/polynomials/LaurentPolynomial.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,12 @@ Compute the roots of the Laurent polynomial `p`.
509509
julia> p = LaurentPolynomial([24,10,-15,0,1],-2:1,:z)
510510
LaurentPolynomial(24*z⁻² + 10*z⁻¹ - 15 + z²)
511511
512-
512+
julia> roots(a)
513+
4-element Array{Float64,1}:
514+
-3.999999999999999
515+
-0.9999999999999994
516+
1.9999999999999998
517+
2.9999999999999982
513518
```
514519
"""
515520
function roots(p::P; kwargs...) where {T, P <: LaurentPolynomial{T}}

0 commit comments

Comments
 (0)