From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pierce Wang Newsgroups: gmane.emacs.bugs Subject: bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions Date: Mon, 15 Oct 2018 12:04:08 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000046c36b0578491c7a" X-Trace: blaine.gmane.org 1539632766 32566 195.159.176.226 (15 Oct 2018 19:46:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 19:46:06 +0000 (UTC) To: 33052@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 21:46:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC8oT-0008MX-6W for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 21:46:01 +0200 Original-Received: from localhost ([::1]:54575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC8qZ-0000bI-Ih for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 15:48:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC8qR-0000bD-H3 for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:48:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC8qQ-0003kM-6G for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:48:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC8qQ-0003kE-1S for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gC8qQ-0002l6-0J for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pierce Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Oct 2018 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33052 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153963286910583 (code B ref -1); Mon, 15 Oct 2018 19:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2018 19:47:49 +0000 Original-Received: from localhost ([127.0.0.1]:51490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC8qD-0002kc-2x for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:47:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC8BG-00010L-T4 for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:05:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC8B5-0005il-Dy for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:05:23 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56931) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC8At-0005V0-Q7 for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:05:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC8Aq-0005Xx-3F for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:05:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC8Aj-0005Oe-Q5 for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:05:00 -0400 Original-Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:34691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC8Aj-0005H9-Dc for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:04:57 -0400 Original-Received: by mail-ed1-x535.google.com with SMTP id w19-v6so18900178eds.1 for ; Mon, 15 Oct 2018 12:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ywZGEjDtGjwqytT/7+IgyvC20zFbxPOrYQbpbzbwivE=; b=WVpRrJnaHgiYZREKwDUnmN5aLZhZR/wpw/PRoGpTlRDM6yv6k+8suSmQkuOMpska8q KRZJaB8fS+qRKIAYFcumoh02sKhGmT2y8P3pA5IQgXGDUyxCBTBtQySyRYvQN6uUuXXF 6pnfoiM6ZwnC/bWK5IsWbmElj8RPUV+Us1zCdnrPK2xWwt3sP+Nc64mMLW/zHPjJIbz0 Zjm5WqfK8nvzobZOaTXtlLZm92tP4yfLIBiC45M1sVC3USRNSGhBX9kYISjal7Ie4Qq9 VBsAc5pGG41ZXAbzfvjwRiIxnb8JU4r2Tee9w2r3uXWAfdZZqIwtRvh7sR9acobxO7Ic 7Cig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ywZGEjDtGjwqytT/7+IgyvC20zFbxPOrYQbpbzbwivE=; b=bCymxGkD7jeIKTNzw2+Wr8auHuxLvxGhwkpp34am+Sr0y2wus1m/fxE/r8EZGJWHuU Gz9QHQusAAbjTDE5OPvxncphELPG3qH3PIiY1GxCjo0NzDewLshTqRBlfF+g3LFMyJeX QBFnYVbwVdxaYzJnlR34Hnu5MCTOhqKcd8XK0626fG3vnCBouUNtslC0ZkpoV2Ca/jqe CGtAYEh7IBB0qj87scxwJFkgdpNLxOao71bMSYv2ssnNZc6gZAL5SsFi7CJuXCNcpH4r ynzng0ATe+H/U1ZyFNgAeNiDG6VGEppgyTzUsLuRXtQ2z2wamZx+nR2bdUt2kdyO54wX g9bQ== X-Gm-Message-State: ABuFfois4i82/QH4/JOL1pUNneC2fuX2A4PYPIC38VzIeQ1QRwWCZiB8 H5tmGA1TLDHGrhBkogU8Li3hmww+IlDF6LC+lqhwE0yU X-Google-Smtp-Source: ACcGV62qvGXwWxRRJuJ1ETnFN1V9LaozdO1nu558e3h99nspUveMTGc5rV9IufJ8+6ucTK5pHVJgtLyTrGmRCDIIcoA= X-Received: by 2002:a50:a643:: with SMTP id d61-v6mr26743361edc.281.1539630285897; Mon, 15 Oct 2018 12:04:45 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 15 Oct 2018 15:47:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151285 Archived-At: --00000000000046c36b0578491c7a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Trying to evaluate "sec(pi/4)" in Calc's algebraic mode returns a "Wrong type argument" instead of returning "sec( pi / 4 )" in the Calc as it should. This bug is replicated with any number n (for sec(pi/n)) where n != =3D 1. Recipe from emacs -Q: C-x * * m r 'sec(pi/4) Thank you for all your hard work! In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.2.0, NS appkit-1561.10 Version 10.13.1 (Build 17B1003)) of 2018-09-22 built on Pierces-MacBook-Air.local Windowing system distributor 'Apple', version 10.3.1561 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. C-x * (Type ? for a list of Calc options) Loading /Users/piercewang/.emacs.d/calc.el (source)...done Welcome to the GNU Emacs Calculator! Press =E2=80=98?=E2=80=99 or =E2=80= =98h=E2=80=99 for help, =E2=80=98q=E2=80=99 to quit m- Angles measured in radians calc-do: Wrong type argument: number-or-marker-p, nil Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=3D/usr/local/share/emacs/site-lisp --infodir=3D/usr/local/Cellar/emacs/26.1_1/share/info/emacs --prefix=3D/usr/local/Cellar/emacs/26.1_1 --with-gnutls --without-x --with-xml2 --without-dbus --without-imagemagick --with-ns --disable-ns-self-contained' Configured features: JPEG NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Calculator Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils calc-frac calc-arith calc-alg calc-aent calc-math calc-ext calc-misc calc-menu easymenu calc calc-loaddefs calc-macs elec-pair time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 237129 9349) (symbols 48 23211 1) (miscs 40 53 193) (strings 32 35244 1615) (string-bytes 1 925272) (vectors 16 37144) (vector-slots 8 740188 18066) (floats 8 54 240) (intervals 56 232 0) (buffers 992 13)) --00000000000046c36b0578491c7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Trying to evaluate "sec(pi/4)" in Ca= lc's algebraic mode returns a "Wrong
type argument" instead of retu= rning "sec( pi / 4 )" in the Calc as it
should. This bug is replicated = with any number n (for sec(pi/n)) where n !=3D 1.

Recipe from emacs -Q:
C-x * *
m r
'sec(pi/4)=

Thank you for al= l your hard work!

In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.2.0, NS appkit-1561.= 10 Version 10.13.1 (Build 17B1003))
of 2018-09-22 built on Pierces-MacBook-Air.lo= cal
Wi= ndowing system distributor 'Apple', version 10.3.1561
Recent messages:
For info= rmation about GNU Emacs and the GNU system, type C-h C-a.

C-x *=C2=A0=C2=A0(Type ? for a list of Calc options)
Loading /Users/piercewang/.emac= s.d/calc.el (source)...done
Welcome to the GNU Emacs Calculator!=C2=A0= =C2=A0Press =E2=80=98?=E2=80=99 or =E2=80=98h=E2=80=99 for help, =E2= =80=98q=E2=80=99 to quit
m-
Angles measured in radians
calc-do: Wrong type argument: number-o= r-marker-p, nil
Configured using:
'configure --disable-dependency-tracking --disabl= e-silent-rules
--enable-locallisppath=3D/usr/local/share/emacs/site-lisp--infodir=3D/u= sr/local/Cellar/emacs/26.1_1/share/info/emacs
--prefix=3D/usr/local/Cellar/emacs/= 26.1_1 --with-gnutls --without-x
--with-xml2 --without-dbus --without-imagemagick= --with-ns
--disable-ns-self-contained'

Configured features:
JPEG NOTIFY ACL GNUTLS LIBXML2 ZLIB= TOOLKIT_SCROLL_BARS NS THREADS

Important settings:
=C2= =A0=C2=A0value of $LC_= CTYPE: en_US.UTF-8
=C2=A0=C2=A0value of $LANG: en_US.UTF-8=
=C2=A0=C2=A0locale-coding-system: utf-8-unix

Major mode: Calculator

Minor modes in effect:
=C2=A0=C2=A0tooltip-mode: t
=C2=A0=C2=A0global-eldoc-mode: t=
= =C2=A0=C2=A0electric-indent-mode: t
=C2=A0=C2=A0mouse-= wheel-mode: t
=C2=A0=C2=A0tool-bar-mode: t
=C2=A0=C2=A0= menu-bar-mode: t
=C2=A0=C2=A0file-name-shadow-mode: t=C2=A0= =C2=A0global-font-lock-mode: t
=C2= =A0=C2=A0font-lock-mod= e: t
=C2=A0=C2=A0blink-cursor-mode: t
=C2=A0=C2=A0auto-= composition-mode: t
=C2=A0=C2=A0auto-encryption-mode: t=C2=A0= =C2=A0auto-compression-mode: t
=C2= =A0=C2=A0buffer-read-o= nly: t
=C2=A0=C2=A0line-number-mode: t
=C2=A0=C2=A0tran= sient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq = byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-= spec rfc822 mml mml-sec password-cache epa derived epg epg-config
gnus-util rmail= rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-u= tils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils= calc-frac calc-arith calc-alg
calc-aent calc-math calc-ext calc-misc calc-menu e= asymenu calc
calc-loaddefs calc-macs elec-pair time-date tooltip eldoc electric
uniquif= y ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win

ucs-normalize mu= le-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-li= st replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu= -bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax = facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc= -lang
= vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew gree= k romanian slovak czech european ethiopic indian cyrillic
chinese composite cha= rscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray min= ibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-p= roperties overlay sha1 md5
base64 format env code-pages mule custom widget hashta= ble-print-readable
backquote kqueue cocoa ns multi-tty make-network-process emacs= )

Memory info= rmation:
((conses 16 237129 9349)
(symbols 48 23211 1)
(miscs 40 53 193)
(strings 32 35244 1615)
(string-= bytes 1 925272)

(vectors 16 37144)
(vector-slots 8 740188 18066)
(floats 8 54 240)
(intervals 56 23= 2 0)
(= buffers 992 13))
--00000000000046c36b0578491c7a--