python-novice-inflammation icon indicating copy to clipboard operation
python-novice-inflammation copied to clipboard

Adding in a little extra info about polynomials

Open wood-chris opened this issue 6 months ago • 3 comments

How could the content be improved?

For those who are unfamiliar (or have only briefly touched) polynomials before, I wonder if a little more explanation would be useful, e.g. modifying the paragraph to say

Suppose you have encoded a polynomial as a list of coefficients in the following way: the first element is the constant term, the second element is the coefficient of the linear term, the third is the coefficient of the quadratic term, etc, where the polynomial is of the form

ax^0 + bx^1 + cx^2

(when writing polynomials mathematically, the x^0 is often omitted since this equals 1)

(the equation could be LaTeX-ified, if the renderer supports that)

Which part of the content does your suggestion apply to?

https://swcarpentry.github.io/python-novice-inflammation/05-loop.html#computing-the-value-of-a-polynomial

wood-chris avatar Jan 23 '24 14:01 wood-chris