JuliaMath / JuliaMath/Polynomials.jl

docs: advertise composition of polynomials

Open
#509 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.