Function: calc-CommuteRules
calc-CommuteRules is an autoloaded and byte-compiled function defined
in calc-rules.el.gz.
Signature
(calc-CommuteRules)
Documentation
CommuteRules
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-rules.el.gz
(defun calc-CommuteRules ()
"CommuteRules"
(calc-compile-rule-set
"CommuteRules" "[
iterations(1),
select(plain(a + b)) := select(plain(b + a)),
select(plain(a - b)) := select(plain((-b) + a)),
select(plain((1/a) * b)) := select(b / a),
select(plain(a * b)) := select(b * a),
select((1/a) / b) := select((1/b) / a),
select(a / b) := select((1/b) * a),
select((a^b) ^ c) := select((a^c) ^ b),
select(log(a, b)) := select(1 / log(b, a)),
select(plain(a && b)) := select(b && a),
select(plain(a || b)) := select(b || a),
select(plain(a = b)) := select(b = a),
select(plain(a != b)) := select(b != a),
select(a < b) := select(b > a),
select(a > b) := select(b < a),
select(a <= b) := select(b >= a),
select(a >= b) := select(b <= a) ]"))