* bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions
@ 2018-10-15 19:04 Pierce Wang
2019-07-10 14:20 ` Lars Ingebrigtsen
2019-07-10 17:37 ` bug#33052: 26.1; Emacs Calc Problem with sec and related trig Mattias Engdegård
0 siblings, 2 replies; 4+ messages in thread
From: Pierce Wang @ 2018-10-15 19:04 UTC (permalink / raw)
To: 33052
[-- Attachment #1: Type: text/plain, Size: 3679 bytes --]
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 !=
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 ‘?’ or ‘h’ for help, ‘q’ 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=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs/26.1_1/share/info/emacs
--prefix=/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))
[-- Attachment #2: Type: text/html, Size: 19794 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions
2018-10-15 19:04 bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions Pierce Wang
@ 2019-07-10 14:20 ` Lars Ingebrigtsen
2019-07-10 17:37 ` bug#33052: 26.1; Emacs Calc Problem with sec and related trig Mattias Engdegård
1 sibling, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-10 14:20 UTC (permalink / raw)
To: Pierce Wang; +Cc: 33052
Pierce Wang <pierce.g.wang@gmail.com> writes:
> 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 != 1.
>
> Recipe from emacs -Q:
> C-x * *
> m r
> 'sec(pi/4)
I spent half an hour trying to debug this, but the Calc code is a
mystery to me, with everything happening... somewhere else, and
functions that don't take inputs but getting stuff from the
environment. Or perhaps I just don't understand the approach, which is
pretty likely.
Does anybody else know how to debug things in Calc these days?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#33052: 26.1; Emacs Calc Problem with sec and related trig
2018-10-15 19:04 bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions Pierce Wang
2019-07-10 14:20 ` Lars Ingebrigtsen
@ 2019-07-10 17:37 ` Mattias Engdegård
2019-07-11 14:19 ` Lars Ingebrigtsen
1 sibling, 1 reply; 4+ messages in thread
From: Mattias Engdegård @ 2019-07-10 17:37 UTC (permalink / raw)
To: Lars Ingebrigtsen, Pierce Wang; +Cc: 33052-done
In no way do I claim to know my way around Calc, but I made some guesses which seem to work.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#33052: 26.1; Emacs Calc Problem with sec and related trig
2019-07-10 17:37 ` bug#33052: 26.1; Emacs Calc Problem with sec and related trig Mattias Engdegård
@ 2019-07-11 14:19 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-11 14:19 UTC (permalink / raw)
To: Mattias Engdegård; +Cc: Pierce Wang, 33052-done
Mattias Engdegård <mattiase@acm.org> writes:
> In no way do I claim to know my way around Calc, but I made some
> guesses which seem to work.
Great!
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-11 14:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-15 19:04 bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions Pierce Wang
2019-07-10 14:20 ` Lars Ingebrigtsen
2019-07-10 17:37 ` bug#33052: 26.1; Emacs Calc Problem with sec and related trig Mattias Engdegård
2019-07-11 14:19 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).