Subject: Re: bug#33052: 26.1; Emacs Calc Problem with sec and related trig functions

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 10 Jul 2019 16:20:53 +0200

Pierce Wang <[email-masked]> 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