Polyroots Bug

Polyroots Bug - Сообщения

#1 Опубликовано: 15.11.2010 15:36:38
Guest

Guest

0 сообщений из 52 понравились пользователям.

Группа: User

Found this unfortunate behavior in polyroots:


v := [-1 1 0 0 0]


polyroots(v) =
index out of bounds


the 4th order polynomial degenerates to a first order with single real root x=1. Polyroots couldn't figure that out. Should it not analyze the coefficient vector to determine correct polynomial order and then proceed to find the roots?
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений