matlab二阶多项式求根
时间: 2023-08-22 20:11:08 浏览: 126
在Matlab中,可以使用`roots`函数来求解二阶多项式的根。为了使用该函数,首先要将二阶多项式的系数存入一个矢量变量中。例如,假设二阶多项式为p(x)=ax^2+bx+c,那么可以将系数a、b和c存入一个长度为3的矢量p中。然后,使用`roots(p)`即可求解该二阶多项式的根。例如,如果多项式的系数p为[1 0 0 0 5 7],则调用`roots(p)`函数后会得到多项式的根的数值表示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [二阶多项式的局部加权非参数回归拟合LOESS平滑附matlab代码](https://download.csdn.net/download/qq_59747472/86784849)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [【基础教程】基于二阶多项式的局部加权非参数回归拟合LOESS平滑附matlab代码 上传.zip](https://download.csdn.net/download/qq_59747472/87680056)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [matlab基础学习(2)之求多项式的根](https://blog.csdn.net/wuxiaoer717/article/details/8194207)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文