Scientific-Programming-in-Julia
Scientific-Programming-in-Julia copied to clipboard
Polynomial coefficients order consistency
All the versions of polynomial
function should share the same order of coefficients, that is consistent with how it is evaluated in Julia's evalpoly
.
Currently in the lab we have coefficients ordered from a_0
to a_n
, but it is probably reversed such that the order from the original polynomial a_n*x^n + a_{n-1}*x^{n-1} + ... + a_1*x + a_0
is conserved.
Affected pages
- Lab 1 (naive)
- Lab 5 (Horner)
- Lab 6 (recursive)
- Lab 7 (macro generation)
@TheMrGhostman can you take this into account for lab 1?