Skip to content

Commit 07da326

Browse files
committed
suggested changes
1 parent 684f09e commit 07da326

File tree

8 files changed

+3
-434
lines changed

8 files changed

+3
-434
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ julia> using Polynomials
2222

2323
* `Polynomial` - Standard polynomials
2424
* `ChebyshevT` - Chebyshev polynomials of the first kind
25-
* `Bersntein` - Bernstein polynomials of degree n
2625

2726
#### Construction and Evaluation
2827

docs/src/extending.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ As always, if the default implementation does not work or there are more efficie
3131
| `divrem` | | Required for [`gcd`](@ref)|
3232
| `variable`| | Convenience to find monomial `x` in new basis|
3333

34-
Check out both the [`Polynomial`](@ref) and [`ChebyshevT`](@ref) for examples of this interface being extended. [`Bernstein`](@ref) is an example where the basis depends on the degree of the polynomials being represented.
34+
Check out both the [`Polynomial`](@ref) and [`ChebyshevT`](@ref) for examples of this interface being extended.

docs/src/polynomials/bernstein.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/Polynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include("contrib.jl")
1212
include("polynomials/Polynomial.jl")
1313
include("polynomials/ChebyshevT.jl")
1414
#include("polynomials/ChebyshevU.jl")
15-
include("polynomials/Bernstein.jl")
15+
1616

1717
include("polynomials/Poly.jl") # to be deprecated, then removed
1818
include("pade.jl")

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Polynomial(6 - 5*x + x^2)
3333
"""
3434
function fromroots(P::Type{<:AbstractPolynomial}, roots::AbstractVector; var::SymbolLike = :x)
3535
x = variable(P, var)
36-
p = prod(x .- roots)
36+
p = prod(x - r for r in roots)
3737
return truncate!(p)
3838
end
3939
fromroots(r::AbstractVector{<:Number}; var::SymbolLike = :x) =

src/polynomials/Bernstein.jl

Lines changed: 0 additions & 225 deletions
This file was deleted.

0 commit comments

Comments
 (0)