mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
Fix math-imaginary-i check
Reported by Bastian Erdnüß at <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00300.html>. * lisp/calc/calc-cplx.el (math-imaginary-i): Check for a value of (polar 1 <quarter-circle>).
This commit is contained in:
parent
fca935e4ab
commit
f088817923
@ -273,8 +273,8 @@
|
||||
(or (eq (car-safe val) 'special-const)
|
||||
(equal val '(cplx 0 1))
|
||||
(and (eq (car-safe val) 'polar)
|
||||
(eq (nth 1 val) 0)
|
||||
(Math-equal (nth 1 val) (math-quarter-circle nil))))))
|
||||
(eq (nth 1 val) 1)
|
||||
(Math-equal (nth 2 val) (math-quarter-circle nil))))))
|
||||
|
||||
;;; Extract the real or complex part of a complex number. [R N] [Public]
|
||||
;;; Also extracts the real part of a modulo form.
|
||||
|
Loading…
Reference in New Issue
Block a user