Scientific-Programming-in-Julia icon indicating copy to clipboard operation
Scientific-Programming-in-Julia copied to clipboard

Polynomial coefficients order consistency

Open janfrancu opened this issue 3 years ago • 1 comments

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)

janfrancu avatar Nov 09 '21 09:11 janfrancu

@TheMrGhostman can you take this into account for lab 1?

nmheim avatar Sep 22 '22 04:09 nmheim