在 Octave 上扩展、因式分解和简化
在 Octave 上展开、分解和简化的等效命令是什么?
例子:
expand((x+1)^2);
x^2+2x+1
simplify(3*x^2+2);
What are the equivalent commands to expand, factor and simplify on Octave?
example:
expand((x+1)^2);
x^2+2x+1
simplify(3*x^2+2);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我认为真正的问题是 Octave 并不像 Wolfram Mathematica 等那样支持很多符号数学。最好的方法是:
1. 重新思考你的问题。这些功能真的是不可避免的吗? (有必要用Octave来解决吗?)
2.如果您的问题仅与多项式有关(正如您的示例所示),请仅使用包含其系数的向量。对于这种目的,Octave 实际上有一些功能,请参见:https: //www.gnu.org/software/octave/doc/interpreter/Polynomial-Manipulations.html
Well, I think the real problem is that Octave is not ment to support much of symbolic math as Wolfram Mathematica etc does. The best way would be:
1. Rethink your problem. Is there really a inevitable need for these functions? (And is it necessary to solve it using Octave?)
2. If your problem is about polynomes only (as your example would suggest), work just with vectors containing its coefficients. For this kind of purposes Octave actually has some functions, see: https://www.gnu.org/software/octave/doc/interpreter/Polynomial-Manipulations.html
您可以查看:http://octave.sourceforge.net/symbolic/index.html。看起来只是扩大了。
You may check this out: http://octave.sourceforge.net/symbolic/index.html . It seems like having expand only.