efficiently determining if a polynomial has a root in the interval [0,T]

后端 未结 5 1600
庸人自扰
庸人自扰 2021-02-19 10:29

I have polynomials of nontrivial degree (4+) and need to robustly and efficiently determine whether or not they have a root in the interval [0,T]. The precise location or number

5条回答
  •  感动是毒
    2021-02-19 10:47

    If the value f(0)*f(t)<=0 then you are guaranteed to have a root. Otherwise you can start splitting the domain into two parts (bisection) and check the values in the ends until you are confident there is no root in that segment.

    if f(0)*f(t)>0 you either have no, two, four, .. roots. Your limit is the polynomial order. if f(0)*f(t)<0 you may have one, three, five, .. roots.

提交回复
热议问题