Skip to content

docs: advertise composition of polynomials #509

@nsajko

Description

@nsajko

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> 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)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions