问题

软件 >> Calculator >> 符号运算
Questions in category: 符号运算 (Symbolic operations).

solve()函数应用于多项式方程

Posted by haifeng on 2023-02-12 14:37:31 last update 2023-02-12 16:01:22 | Answers (0) | 收藏


已知多项式 $x^{13}+x+90$ 能够被 $x^2-x+a$ 整除, 其中 $a$ 是整数, 求 $a$.

问题见于 已知多项式 x^13+x+90 能够被 x^2-x+a 整除,其中 a 是整数,求 a - 基础数学 - 数学中国 - Powered by Discuz! (mathchina.com)

我们扩充了 Calculator 的 solve() 函数的功能, 使之对多项式方程也能处理. 

首先进入 polyn 模式

>> :mode=polyn

然后输入下面的代码, solve 的语法是 solve(equation,x,minValue,maxValue), 其中变量 x 的范围是  $x\in [minValue, maxValue)$.

根据题设, $90$ 能被 $a$  整除, 因此, 搜索的范围可设定在 $[-90,90]$.

>> solve((x^13+x+90)mod(x^2-x+a)==0,a, -90, 90)