Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

docs: advertise composition of polynomials

Open
#509 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia
Domain
documentation

Research direction

Search the documentation for the existing polynomial evaluation code path and the terms "composition" and "substitution". Document that evaluating one Polynomial with another composes them, using the Julia REPL example in the issue, and verify that the documented example works.

Written by the indexing model from the issue text.

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> 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)))
Dominant language
Julia
Stars
321
Forks
81
Avg merge
10h 1m
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaMath/Polynomials.jl

All issues in JuliaMath/Polynomials.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.