unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Pierce Wang <pierce.g.wang@gmail.com>
Cc: 33052@debbugs.gnu.org
Subject: bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions
Date: Wed, 10 Jul 2019 16:20:53 +0200	[thread overview]
Message-ID: <87tvbu2coq.fsf@mouse.gnus.org> (raw)
In-Reply-To: <CALzWeGcb3_RhoZJKf2Qm4jH_EWet3q+0=8OmHSHABObOW9O9nA@mail.gmail.com> (Pierce Wang's message of "Mon, 15 Oct 2018 12:04:08 -0700")

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





  reply	other threads:[~2019-07-10 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvbu2coq.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=33052@debbugs.gnu.org \
    --cc=pierce.g.wang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).