calc-alg.el (math-simplify-divide): Don't cross multiply
in an equation when the lhs is a variable.
This commit is contained in:
parent
b7af7f62e4
commit
3cc5a3a871
2 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2012-07-25 Jay Belanger <jay.p.belanger@gmail.com>
|
||||
|
||||
* calc-alg.el (math-simplify-divide): Don't cross multiply
|
||||
in an equation when the lhs is a variable.
|
||||
|
||||
2012-07-24 Julien Danjou <julien@danjou.info>
|
||||
|
||||
* net/netrc.el (netrc-find-service-number, netrc-store-data):
|
||||
|
|
|
|||
|
|
@ -530,7 +530,10 @@
|
|||
(not (Math-realp (nth 1 math-simplify-expr))))
|
||||
(math-common-constant-factor (nth 1 math-simplify-expr))))
|
||||
(if (and (eq (car-safe nn) 'frac) (eq (nth 1 nn) 1) (not n))
|
||||
(progn
|
||||
(unless (and (eq (car-safe math-simplify-expr) 'calcFunc-eq)
|
||||
(eq (car-safe (nth 1 math-simplify-expr)) 'var)
|
||||
(not (math-expr-contains (nth 2 math-simplify-expr)
|
||||
(nth 1 math-simplify-expr))))
|
||||
(setcar (cdr math-simplify-expr)
|
||||
(math-mul (nth 2 nn) (nth 1 math-simplify-expr)))
|
||||
(setcar (cdr (cdr math-simplify-expr))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue