不同顺序的方程式项
Terms of an equation in different order
我正在使用 wxMaxima 15.08.1 (win 10),当我输入这个方程时
/* [wxMaxima: input start ] */a*x+b*y+c*z=0;
我明白了:
/* [wxMaxima: input end ] */cz+by+ax=0
为什么它会改变术语在表达式中的位置?好像是按降序排列的。
然后,如果我输入另一个方程,给所有系数相同的未知数,maxima 输出它恰到好处。
/* [wxMaxima: input start ] */a*x^2+b*x+c=0;
/* [wxMaxima: input end ] */ax^2+bx+x=0
Maxima 对于“+”和“*”表达式中术语的规范排序有自己的想法。规范排序由函数 ordergreatp
(等价于 orderlessp
)表示,它指示一个术语是否在另一个术语之后(分别在另一个术语之前)。如果您将 sort
应用于术语列表,默认情况下,它们会根据规范顺序进行排序。
默认情况下,“+”项以相反的顺序显示(与规范顺序相反)。当全局变量 powerdisp
为 true
时,“+”项按规范顺序显示。您可以决定哪个订单更适合您。
(%i2) powerdisp;
(%o2) false
(%i3) a*x + b*y + c*z;
(%o3) c z + b y + a x
(%i4) a*x^2 + b*x + c;
2
(%o4) a x + b x + c
(%i7) powerdisp : true $
(%i8) a*x + b*y + c*z;
(%o8) a x + b y + c z
(%i9) a*x^2 + b*x + c;
2
(%o9) c + b x + a x
我正在使用 wxMaxima 15.08.1 (win 10),当我输入这个方程时
/* [wxMaxima: input start ] */a*x+b*y+c*z=0;
我明白了:
/* [wxMaxima: input end ] */cz+by+ax=0
为什么它会改变术语在表达式中的位置?好像是按降序排列的。
然后,如果我输入另一个方程,给所有系数相同的未知数,maxima 输出它恰到好处。
/* [wxMaxima: input start ] */a*x^2+b*x+c=0;
/* [wxMaxima: input end ] */ax^2+bx+x=0
Maxima 对于“+”和“*”表达式中术语的规范排序有自己的想法。规范排序由函数 ordergreatp
(等价于 orderlessp
)表示,它指示一个术语是否在另一个术语之后(分别在另一个术语之前)。如果您将 sort
应用于术语列表,默认情况下,它们会根据规范顺序进行排序。
默认情况下,“+”项以相反的顺序显示(与规范顺序相反)。当全局变量 powerdisp
为 true
时,“+”项按规范顺序显示。您可以决定哪个订单更适合您。
(%i2) powerdisp;
(%o2) false
(%i3) a*x + b*y + c*z;
(%o3) c z + b y + a x
(%i4) a*x^2 + b*x + c;
2
(%o4) a x + b x + c
(%i7) powerdisp : true $
(%i8) a*x + b*y + c*z;
(%o8) a x + b y + c z
(%i9) a*x^2 + b*x + c;
2
(%o9) c + b x + a x