(math-factor-poly-coefs): Make sure the terms in linear factors in proper
order.
This commit is contained in:
parent
2470aebd10
commit
bfdb6aebd9
1 changed files with 7 additions and 6 deletions
|
@ -692,12 +692,13 @@
|
|||
|
||||
;; Check if linear in math-fet-x.
|
||||
((not (cdr (cdr p)))
|
||||
(math-add (math-factor-protect
|
||||
(math-sort-terms
|
||||
(math-factor-expr (car p))))
|
||||
(math-mul math-fet-x (math-factor-protect
|
||||
(math-sort-terms
|
||||
(math-factor-expr (nth 1 p)))))))
|
||||
(math-sort-terms
|
||||
(math-add (math-factor-protect
|
||||
(math-sort-terms
|
||||
(math-factor-expr (car p))))
|
||||
(math-mul math-fet-x (math-factor-protect
|
||||
(math-sort-terms
|
||||
(math-factor-expr (nth 1 p))))))))
|
||||
|
||||
;; If symbolic coefficients, use FactorRules.
|
||||
((let ((pp p))
|
||||
|
|
Loading…
Add table
Reference in a new issue