JuliaMath / JuliaMath/Polynomials.jl
docs: advertise composition of polynomials
Open
- Dominant language
- Julia
- Stars
- 320
- Forks
- 80
- Avg merge
- 8h 46m
- Merged PRs (30d)
- 3
Description
Searching the docs for "composition" or "substitution" doesn't turn up anything. The same code path designed for evaluating a polynomial seems to work fine for composing two polynomials together, though:
```julia-repl
julia> using Polynomials
julia> p = Polynomial([0, 1])
Polynomial(x)
julia> q = Polynomial(Float64[0, 0.5])
Polynomial(0.5*x)
julia> r = Polynomial(Float64[0, 2])
Polynomial(2.0*x)
julia> q(r) == r(q) == p == p(p) == p(p(p)) == p(p(p(p)))
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.