bernstein: don't assume input polynomial has been expanded
commit834ac024d3233f7b173117455efb2c18e449d772
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 27 Jun 2007 19:22:24 +0000 (27 21:22 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 27 Jun 2007 19:22:46 +0000 (27 21:22 +0200)
tree91a85ab84f9dca3bacddefccfc1ab936f9059286
parentec60410bf8e2c47eab8a6c275c3e13bed7b3b60b
bernstein: don't assume input polynomial has been expanded

In particular, findMaxDegree would produce incorrect results
if it wasn't.  Applying this function on the expanded polynomial
corrects this problem.
bernstein/examples/unexpanded.matrix [new file with mode: 0644]
bernstein/examples/unexpanded.out [new file with mode: 0644]
bernstein/src/bernstein.cpp