Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]() I am working o this question but I am having some difficulties as this is my first year of doing any type of programming Write a non-recursive function HornerSimple which evaluates a polynomial p(x) using the Horner algorithm. The function should return the value of the polynomial for a given x and coefficient list a. It should be passed the following two arguments in exactly this order, i.e. it should be called as HornerSimple(a,x): The function HornerSimple should also work in the special case when the list a=[] is empty. In this case it [This is my code so far but I get error when I test it and I do not know how to change it to make it correct1 More answer... |
![]() |
![]() |