Package: calc
Version: 2.02f-26
Severity: normal
Tags: patch

I would reopen bug #35910, but the bug system's forgotten it ever
existed.  But the bug still isn't fixed, despite a claim that it was in
1999.

To demonstrate:

  * Start a fresh Emacs,
  * `M-# M-#'
  * `m s'
  * `2 n RET'
  * `L'
  * `a s'
  * Marvel as it says `ln(2) + pi', which is obviously wrong.  It ought
    to say `ln(2) + i pi'.

The following patch fixes the bug.  Again.

--- calc-alg.el.orig    2006-03-23 11:59:53.000000000 +0000
+++ calc-alg.el 2006-03-23 12:00:41.000000000 +0000
@@ -1132,7 +1132,7 @@
       (and calc-symbolic-mode
           (math-known-negp (nth 1 expr))
           (math-add (list 'calcFunc-ln (math-neg (nth 1 expr)))
-                    '(var pi var-pi)))
+                    '(* (var pi var-pi) (var i var-i))))
       (and calc-symbolic-mode
           (math-known-imagp (nth 1 expr))
           (let* ((ip (calcFunc-im (nth 1 expr)))


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.29
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages calc depends on:
ii  emacs21                       21.4a-3    The GNU Emacs editor
ii  ucf                           2.005      Update Configuration File: preserv

calc recommends no packages.

-- no debconf information


-- [mdw]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to