]> git.eshelyaron.com Git - emacs.git/commit
Use the expression angle units while simplifying it
authorTino Calancha <tino.calancha@gmail.com>
Thu, 18 May 2017 05:47:06 +0000 (14:47 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 18 May 2017 05:47:06 +0000 (14:47 +0900)
commitc48e539226a062d01b8d5534644fae959506a743
treebff2bc631c358f616ab51c671c2a60201e9488a6
parenteab1a6307b09180bd775cfb6bf7330eb5367bbe0
Use the expression angle units while simplifying it

Don't use the angle mode, use the angle units included
in the expression instead (Bug#23889).
* lisp/calc/calc-alg.el (calc-input-angle-units): New defun.
(math-simplify): Use it.
* lisp/calc/calc-forms.el (math-to-hms, math-from-hms):
Don't use calc-angle-mode if math-simplifying-units is non-nil.
* lisp/calc/calc-math.el (calcFunc-nroot, math-from-radians)
(math-to-radians-2, math-from-radians-2): Don't convert angle
to radians if math-simplifying-units is non-nil.
* test/lisp/calc/calc-tests.el (test-calc-23889): Add test.
lisp/calc/calc-alg.el
lisp/calc/calc-forms.el
lisp/calc/calc-math.el
test/lisp/calc/calc-tests.el