MATLAB 帮助中心
霍纳嵌套多项式表示
horner(p)
horner(p,var)
horner(p) 返回多项式 p 的霍纳形式。
p
示例
horner(p,var) 使用 var 中的变量。
var
全部折叠
求一个多项式的霍纳表示。
syms x p = x^3 - 6*x^2 + 11*x - 6; horner(p)
ans = x*(x*(x - 6) + 11) - 6
通过使用第二个参量指定多项式中的变量。
syms a b y p = a*y*x^3 - y*x^2 - 11*b*y*x + 2; horner(p,x)
ans = 2 - x*(11*b*y + x*(y - a*x*y))
horner(p,y)
ans = 2 - y*(- a*x^3 + x^2 + 11*b*x)
多项式,指定为符号表达式或符号函数,或者符号表达式数组或符号函数数组。
变量,指定为符号变量或由符号变量组成的数组。
在 R2006a 之前推出
collect | combine | expand | factor | numden | rewrite | simplify | simplifyFraction
collect
combine
expand
factor
numden
rewrite
simplify
simplifyFraction
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处