From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 02:38:53 2017 Received: (at submit) by debbugs.gnu.org; 8 Feb 2017 07:38:54 +0000 Received: from localhost ([127.0.0.1]:59587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbMq5-00087C-A6 for submit@debbugs.gnu.org; Wed, 08 Feb 2017 02:38:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbMq3-00086z-Ai for submit@debbugs.gnu.org; Wed, 08 Feb 2017 02:38:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbMpv-0005E8-M9 for submit@debbugs.gnu.org; Wed, 08 Feb 2017 02:38:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbMpv-0005E2-Iu for submit@debbugs.gnu.org; Wed, 08 Feb 2017 02:38:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbMps-0000dk-Vx for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 02:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbMpp-0005By-SN for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 02:38:41 -0500 Received: from mx-out-2.rwth-aachen.de ([134.130.5.187]:13119) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbMpp-0005BB-AR for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 02:38:37 -0500 X-IronPort-AV: E=Sophos;i="5.33,346,1477954800"; d="scan'208";a="484527620" Received: from rwthex-s2-b.rwth-ad.de ([134.130.26.155]) by mx-2.rz.rwth-aachen.de with ESMTP; 08 Feb 2017 08:38:33 +0100 Received: from wilson (109.90.2.239) by rwthex-s2-b.rwth-ad.de (2002:8682:1a9b::8682:1a9b) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 8 Feb 2017 08:38:32 +0100 From: Torsten Bronger To: Subject: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Wed, 8 Feb 2017 08:37:57 +0100 Message-ID: <877f51f7ze.fsf@wilson> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [109.90.2.239] X-ClientProxiedBy: rwthex-s1-b.rwth-ad.de (2002:8682:1a99::8682:1a99) To rwthex-s2-b.rwth-ad.de (2002:8682:1a9b::8682:1a9b) 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) In Emacs calc usind degree mode, cos(1) results in 0.540302305868 instead of 0.999847695156. In GNU Emacs 26.0.50.3 (x86_64-pc-linux-gnu) of 2017-02-08 built on wilson Repository revision: c8ee570a8be7afaae3ea318b9d7dbffb62a7bbd0 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.1 LTS Recent messages: Mark set [2 times] Saving file /home/bronger/src/totorio/certbot/certbot_master.py... Wrote /home/bronger/src/totorio/certbot/certbot_master.py C-c * is undefined C-x * (Type ? for a list of Calc options) Loading /home/bronger/.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 Working... [2 times] Angles measured in radians Working... Configured using: 'configure --prefix=3D/usr/local/ --mandir=3D/usr/local/share/man/ --infodir=3D/usr/local/share/info/ --with-x-toolkit=3Dno --without-makeinfo --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-x' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB X11 Important settings: value of $EMACSLOADPATH: /home/bronger/.emacs.d/lisp: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Calculator Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t global-auto-revert-mode: t savehist-mode: t desktop-save-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Load-path shadows: /home/bronger/.emacs.d/lisp/visual-basic-mode hides /home/bronger/.emacs.d/= lisp/nxhtml/related/visual-basic-mode /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup = hides /home/bronger/.emacs.d/lisp/yasnippet/snippets/prog-mode/.yas-setup /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup = hides /home/bronger/.emacs.d/lisp/yasnippet/snippets/python-mode/.yas-setup /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup = hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/html-mode/.yas= -setup /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup = hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/objc-mode/.yas= -setup /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/html-mode/.yasmate-e= xtra-substitutions hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snip= pets/rails-mode/.yasmate-extra-substitutions /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup = hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/rails-mode/.ya= s-setup /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/html-mode/.yasmate-e= xtra-substitutions hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snip= pets/ruby-mode/.yasmate-extra-substitutions /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup = hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/ruby-mode/.yas= -setup /home/bronger/.emacs.d/lisp/mmm/mmm-noweb hides /usr/local/share/emacs/site= -lisp/mmm-noweb /home/bronger/.emacs.d/lisp/po-mode hides /usr/local/share/emacs/site-lisp/= po-mode /home/bronger/.emacs.d/lisp/mmm/mmm-erb hides /usr/local/share/emacs/site-l= isp/mmm-erb /home/bronger/.emacs.d/lisp/browse-kill-ring hides /usr/local/share/emacs/s= ite-lisp/browse-kill-ring /home/bronger/.emacs.d/lisp/mmm/mmm-vars hides /usr/local/share/emacs/site-= lisp/mmm-vars /home/bronger/.emacs.d/lisp/mmm/mmm-cweb hides /usr/local/share/emacs/site-= lisp/mmm-cweb /home/bronger/.emacs.d/lisp/mmm/mmm-auto hides /usr/local/share/emacs/site-= lisp/mmm-auto /home/bronger/.emacs.d/lisp/mmm/mmm-rpm hides /usr/local/share/emacs/site-l= isp/mmm-rpm /home/bronger/.emacs.d/lisp/mmm/mmm-univ hides /usr/local/share/emacs/site-= lisp/mmm-univ /home/bronger/.emacs.d/lisp/mmm/mmm-mode hides /usr/local/share/emacs/site-= lisp/mmm-mode /home/bronger/.emacs.d/lisp/mmm/mmm-sample hides /usr/local/share/emacs/sit= e-lisp/mmm-sample /home/bronger/.emacs.d/lisp/mmm/mmm-region hides /usr/local/share/emacs/sit= e-lisp/mmm-region /home/bronger/.emacs.d/lisp/mmm/mmm-class hides /usr/local/share/emacs/site= -lisp/mmm-class /home/bronger/.emacs.d/lisp/auctex hides /usr/local/share/emacs/site-lisp/a= uctex /home/bronger/.emacs.d/lisp/mmm/mmm-cmds hides /usr/local/share/emacs/site-= lisp/mmm-cmds /home/bronger/.emacs.d/lisp/mmm/mmm-compat hides /usr/local/share/emacs/sit= e-lisp/mmm-compat /home/bronger/.emacs.d/lisp/mmm/mmm-utils hides /usr/local/share/emacs/site= -lisp/mmm-utils /home/bronger/.emacs.d/lisp/mmm/mmm-mason hides /usr/local/share/emacs/site= -lisp/mmm-mason /home/bronger/.emacs.d/lisp/mmm/mmm-myghty hides /usr/local/share/emacs/sit= e-lisp/mmm-myghty /home/bronger/.emacs.d/lisp/tex-site hides /usr/local/share/emacs/site-lisp= /tex-site /home/bronger/.emacs.d/lisp/preview-latex hides /usr/local/share/emacs/site= -lisp/preview-latex /home/bronger/.emacs.d/lisp/bbdb/bbdb-xemacs hides /usr/local/share/emacs/s= ite-lisp/bbdb/bbdb-xemacs /home/bronger/.emacs.d/lisp/bbdb/bbdb hides /usr/local/share/emacs/site-lis= p/bbdb/bbdb /home/bronger/.emacs.d/lisp/bbdb/bbdb-whois hides /usr/local/share/emacs/si= te-lisp/bbdb/bbdb-whois /home/bronger/.emacs.d/lisp/bbdb/bbdb-gnus hides /usr/local/share/emacs/sit= e-lisp/bbdb/bbdb-gnus /home/bronger/.emacs.d/lisp/bbdb/bbdb-sc hides /usr/local/share/emacs/site-= lisp/bbdb/bbdb-sc /home/bronger/.emacs.d/lisp/bbdb/bbdb-merge hides /usr/local/share/emacs/si= te-lisp/bbdb/bbdb-merge /home/bronger/.emacs.d/lisp/bbdb/bbdb-autoloads hides /usr/local/share/emac= s/site-lisp/bbdb/bbdb-autoloads /home/bronger/.emacs.d/lisp/bbdb/bbdb-hooks hides /usr/local/share/emacs/si= te-lisp/bbdb/bbdb-hooks /home/bronger/.emacs.d/lisp/bbdb/bbdb-com hides /usr/local/share/emacs/site= -lisp/bbdb/bbdb-com /home/bronger/.emacs.d/lisp/bbdb/bbdb-print hides /usr/local/share/emacs/si= te-lisp/bbdb/bbdb-print /home/bronger/.emacs.d/lisp/bbdb/bbdb-migrate hides /usr/local/share/emacs/= site-lisp/bbdb/bbdb-migrate /home/bronger/.emacs.d/lisp/bbdb/bbdb-reportmail hides /usr/local/share/ema= cs/site-lisp/bbdb/bbdb-reportmail /home/bronger/.emacs.d/lisp/bbdb/bbdb-vm hides /usr/local/share/emacs/site-= lisp/bbdb/bbdb-vm /home/bronger/.emacs.d/lisp/bbdb/bbdb-gui hides /usr/local/share/emacs/site= -lisp/bbdb/bbdb-gui /home/bronger/.emacs.d/lisp/bbdb/bbdb-ftp hides /usr/local/share/emacs/site= -lisp/bbdb/bbdb-ftp /home/bronger/.emacs.d/lisp/bbdb/bbdb-w3 hides /usr/local/share/emacs/site-= lisp/bbdb/bbdb-w3 /home/bronger/.emacs.d/lisp/bbdb/bbdb-srv hides /usr/local/share/emacs/site= -lisp/bbdb/bbdb-srv /home/bronger/.emacs.d/lisp/bbdb/bbdb-snarf hides /usr/local/share/emacs/si= te-lisp/bbdb/bbdb-snarf /home/bronger/.emacs.d/lisp/bbdb/bbdb-rmail hides /usr/local/share/emacs/si= te-lisp/bbdb/bbdb-rmail /home/bronger/.emacs.d/lisp/bbdb/bbdb-mhe hides /usr/local/share/emacs/site= -lisp/bbdb/bbdb-mhe /home/bronger/.emacs.d/lisp/w3m/w3m-cookie hides /usr/local/share/emacs/sit= e-lisp/w3m/w3m-cookie /home/bronger/.emacs.d/lisp/w3m/w3m-bug hides /usr/local/share/emacs/site-l= isp/w3m/w3m-bug /home/bronger/.emacs.d/lisp/w3m/bookmark-w3m hides /usr/local/share/emacs/s= ite-lisp/w3m/bookmark-w3m /home/bronger/.emacs.d/lisp/w3m/w3m-symbol hides /usr/local/share/emacs/sit= e-lisp/w3m/w3m-symbol /home/bronger/.emacs.d/lisp/w3m/w3m-bookmark hides /usr/local/share/emacs/s= ite-lisp/w3m/w3m-bookmark /home/bronger/.emacs.d/lisp/w3m/w3m-mail hides /usr/local/share/emacs/site-= lisp/w3m/w3m-mail /home/bronger/.emacs.d/lisp/w3m/w3m-session hides /usr/local/share/emacs/si= te-lisp/w3m/w3m-session /home/bronger/.emacs.d/lisp/w3m/w3m-lnum hides /usr/local/share/emacs/site-= lisp/w3m/w3m-lnum /home/bronger/.emacs.d/lisp/w3m/w3m-util hides /usr/local/share/emacs/site-= lisp/w3m/w3m-util /home/bronger/.emacs.d/lisp/w3m/w3m hides /usr/local/share/emacs/site-lisp/= w3m/w3m /home/bronger/.emacs.d/lisp/w3m/w3m-search hides /usr/local/share/emacs/sit= e-lisp/w3m/w3m-search /home/bronger/.emacs.d/lisp/w3m/w3m-image hides /usr/local/share/emacs/site= -lisp/w3m/w3m-image /home/bronger/.emacs.d/lisp/w3m/w3m-load hides /usr/local/share/emacs/site-= lisp/w3m/w3m-load /home/bronger/.emacs.d/lisp/w3m/w3m-dtree hides /usr/local/share/emacs/site= -lisp/w3m/w3m-dtree /home/bronger/.emacs.d/lisp/w3m/w3m-ccl hides /usr/local/share/emacs/site-l= isp/w3m/w3m-ccl /home/bronger/.emacs.d/lisp/w3m/w3m-weather hides /usr/local/share/emacs/si= te-lisp/w3m/w3m-weather /home/bronger/.emacs.d/lisp/w3m/w3m-tabmenu hides /usr/local/share/emacs/si= te-lisp/w3m/w3m-tabmenu /home/bronger/.emacs.d/lisp/w3m/w3m-form hides /usr/local/share/emacs/site-= lisp/w3m/w3m-form /home/bronger/.emacs.d/lisp/w3m/w3m-perldoc hides /usr/local/share/emacs/si= te-lisp/w3m/w3m-perldoc /home/bronger/.emacs.d/lisp/w3m/w3m-namazu hides /usr/local/share/emacs/sit= e-lisp/w3m/w3m-namazu /home/bronger/.emacs.d/lisp/w3m/w3m-rss hides /usr/local/share/emacs/site-l= isp/w3m/w3m-rss /home/bronger/.emacs.d/lisp/w3m/w3m-favicon hides /usr/local/share/emacs/si= te-lisp/w3m/w3m-favicon /home/bronger/.emacs.d/lisp/w3m/mime-w3m hides /usr/local/share/emacs/site-= lisp/w3m/mime-w3m /home/bronger/.emacs.d/lisp/w3m/w3m-antenna hides /usr/local/share/emacs/si= te-lisp/w3m/w3m-antenna /home/bronger/.emacs.d/lisp/w3m/w3m-hist hides /usr/local/share/emacs/site-= lisp/w3m/w3m-hist /home/bronger/.emacs.d/lisp/w3m/w3m-filter hides /usr/local/share/emacs/sit= e-lisp/w3m/w3m-filter /home/bronger/.emacs.d/lisp/w3m/w3m-proc hides /usr/local/share/emacs/site-= lisp/w3m/w3m-proc /home/bronger/.emacs.d/lisp/w3m/octet hides /usr/local/share/emacs/site-lis= p/w3m/octet /home/bronger/.emacs.d/lisp/w3m/w3m-ucs hides /usr/local/share/emacs/site-l= isp/w3m/w3m-ucs /home/bronger/.emacs.d/lisp/w3m/mew-w3m hides /usr/local/share/emacs/site-l= isp/w3m/mew-w3m /home/bronger/.emacs.d/lisp/w3m/w3m-ems hides /usr/local/share/emacs/site-l= isp/w3m/w3m-ems /home/bronger/.emacs.d/lisp/w3m/w3m-fb hides /usr/local/share/emacs/site-li= sp/w3m/w3m-fb Features: (shadow sort mail-extr emacsbug sendmail calc-arith calc-math calc-alg calc-units calc-ext calc-misc calc-menu calc calc-loaddefs calc-macs misearch multi-isearch add-log flyspell ispell go-oracle imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode dom nxml-util nxml-enc xmltok conf-mode vc-cvs gmane gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo gnus-spec gnus-int gnus-range message puny rfc822 mml mml-sec epa epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader reftex-dcr reftex reftex-loaddefs reftex-vars font-latex latexenc dired-aux vc-git diff-mode python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell parse-time json map darkroom cql-mode sql view rust-mode swift-mode go-errcheck go-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap find-file ffap thingatpt etags xref project yaml-mode dockerfile-mode derived rx sh-script smie executable dired-x adaptive-wrap vc-dispatcher vc-bzr org-element org-rmail org-mhe org-irc org-info org-gnus gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils org-docview org-bibtex bibtex org-bbdb org-w3m org-agenda ob-python org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func server w3m browse-url doc-view subr-x jka-compr dired dired-loaddefs image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util rst compile comint ansi-color ring browse-kill-ring mmm-mode mmm-univ mmm-class mmm-region mmm-auto mmm-vars mmm-utils mmm-compat cl bbdb-autoloads bbdb timezone cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs preview prv-emacs info reporter latex easy-mmode tex-style tex-buf tex dbus xml advice mm-util mail-prsvr autorevert filenotify preview-latex tex-site auto-loads edmacro kmacro savehist desktop frameset delsel cus-start cus-load finder-inf package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd 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 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting x multi-tty make-network-process emacs) Memory information: ((conses 16 778854 42772) (symbols 48 57111 2) (miscs 40 8560 418) (strings 32 148240 21268) (string-bytes 1 4683887) (vectors 16 82340) (vector-slots 8 2013364 207133) (floats 8 1864 650) (intervals 56 25509 0) (buffers 976 336) (heap 1024 83381 2852)) --=20 Torsten Bronger From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 12:39:47 2017 Received: (at 25652) by debbugs.gnu.org; 8 Feb 2017 17:39:48 +0000 Received: from localhost ([127.0.0.1]:60473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbWDb-00029U-NW for submit@debbugs.gnu.org; Wed, 08 Feb 2017 12:39:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbWDa-00029H-FM for 25652@debbugs.gnu.org; Wed, 08 Feb 2017 12:39:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbWDU-00073Z-Fi for 25652@debbugs.gnu.org; Wed, 08 Feb 2017 12:39:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbWDU-00073L-Cs; Wed, 08 Feb 2017 12:39:40 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2972 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cbWDR-0005Zm-J1; Wed, 08 Feb 2017 12:39:40 -0500 Date: Wed, 08 Feb 2017 19:39:27 +0200 Message-Id: <8337fo60q8.fsf@gnu.org> From: Eli Zaretskii To: Torsten Bronger In-reply-to: <877f51f7ze.fsf@wilson> (message from Torsten Bronger on Wed, 8 Feb 2017 08:37:57 +0100) Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 References: <877f51f7ze.fsf@wilson> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25652 Cc: 25652@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Torsten Bronger > Date: Wed, 8 Feb 2017 08:37:57 +0100 > > > In Emacs calc usind degree mode, cos(1) results in 0.540302305868 > instead of 0.999847695156. Are you sure you were in degree mode? From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 13:56:20 2017 Received: (at submit) by debbugs.gnu.org; 8 Feb 2017 18:56:20 +0000 Received: from localhost ([127.0.0.1]:60507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbXPg-0003sn-8u for submit@debbugs.gnu.org; Wed, 08 Feb 2017 13:56:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbXPe-0003sa-Pc for submit@debbugs.gnu.org; Wed, 08 Feb 2017 13:56:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbXPY-00041O-U4 for submit@debbugs.gnu.org; Wed, 08 Feb 2017 13:56:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbXPY-000418-RL for submit@debbugs.gnu.org; Wed, 08 Feb 2017 13:56:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbXPX-0008NA-Qi for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 13:56:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbXPQ-0003zA-Uc for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 13:56:11 -0500 Received: from [195.159.176.226] (port=33171 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbXPQ-0003yQ-Ms for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 13:56:04 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cbXPG-00053D-TF for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 19:55:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: Torsten Bronger Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Wed, 08 Feb 2017 19:52:02 +0100 Organization: Phoenix Foundation Lines: 28 Message-ID: <87fujoms6l.fsf@wilson.bronger.org> References: <877f51f7ze.fsf@wilson> <8337fo60q8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-PGP-Affinity: will accept encrypted message for GPG X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en Jabber-ID: torsten.bronger@jabber.rwth-aachen.de Mail-Copies-To: never Cancel-Lock: sha1:tKAhD4KYl+El/WcP+i96fkrMXuc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hallöchen! Eli Zaretskii writes: >> From: Torsten Bronger >> Date: Wed, 8 Feb 2017 08:37:57 +0100 >> >> >> In Emacs calc usind degree mode, cos(1) results in 0.540302305868 >> instead of 0.999847695156. > > Are you sure you were in degree mode? Absolutely. And funny enough, cos(90) resulted in zero(!). For the whole time, Deg was in the modeline, and I didn't switch anything. Also with "emacs -q". The sequence "m d 90 C 1 C m r 90 C 1 C" yields: 0 0.540302305868 -0.448073616129 0.540302305868 Tschö, Torsten. -- Torsten Bronger From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 14:31:52 2017 Received: (at 25652) by debbugs.gnu.org; 8 Feb 2017 19:31:52 +0000 Received: from localhost ([127.0.0.1]:60522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbXy4-0004hn-IX for submit@debbugs.gnu.org; Wed, 08 Feb 2017 14:31:52 -0500 Received: from smtp08.acens.net ([86.109.99.132]:18022 helo=smtp.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbXy2-0004ha-HM for 25652@debbugs.gnu.org; Wed, 08 Feb 2017 14:31:51 -0500 X-CTCH-RefID: str=0001.0A0B0204.589B721E.0141, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Received: from qcore (88.10.156.169) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 58733CC2026E7644; Wed, 8 Feb 2017 19:31:42 +0000 From: =?utf-8?Q?=C3=93scar_Fuentes?= To: Torsten Bronger Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 References: <877f51f7ze.fsf@wilson> Date: Wed, 08 Feb 2017 20:31:42 +0100 In-Reply-To: <877f51f7ze.fsf@wilson> (Torsten Bronger's message of "Wed, 8 Feb 2017 08:37:57 +0100") Message-ID: <874m04h42p.fsf@wanadoo.es> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 25652 Cc: 25652@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Torsten Bronger writes: > In Emacs calc usind degree mode, cos(1) results in 0.540302305868 > instead of 0.999847695156. > > > In GNU Emacs 26.0.50.3 (x86_64-pc-linux-gnu) > of 2017-02-08 built on wilson After pulling and building *right* *now* M-x version says GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, X toolkit) of 2017-02-08 Why the OP version is 26.0.50.3 ? > Repository revision: c8ee570a8be7afaae3ea318b9d7dbffb62a7bbd0 This revision exists and is one behind `master' on my checkout. BTW, I can't reproduce the problem following the recipe described by the OP on his other message. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 14:37:04 2017 Received: (at 25652) by debbugs.gnu.org; 8 Feb 2017 19:37:05 +0000 Received: from localhost ([127.0.0.1]:60538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbY36-0004qB-Ll for submit@debbugs.gnu.org; Wed, 08 Feb 2017 14:37:04 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:32834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbY34-0004ph-JX for 25652@debbugs.gnu.org; Wed, 08 Feb 2017 14:37:03 -0500 Received: by mail-oi0-f65.google.com with SMTP id j15so11782291oih.0 for <25652@debbugs.gnu.org>; Wed, 08 Feb 2017 11:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=CO1qRgAtXKRFhWJ3J++ZzpzPPN5PCSDrTQTPGTGvNCg=; b=UUos+h04i25Q9itv+ziZ/d/mYhx4TyFHMkZt2Tdl/DurChLh+mI/hf9RcAUe7dCQ7V eUPZE65dZYiN4PID09w0FJi6Gz8rqBrEyPmTgJg+YXmnEXAycIeBbd2LFaGnHc8fmobl Cf+k+V8KPHOUsTYX7cicbF4G5PrDzw3WrOkNefzMF8FanxQWpcAP+FtFw0zTP+cWO1Ww p5pPb1cCL0w/bzQ1UwiHgpEb5lal9wGwNL+NbGu+0W+1Yo214W7xoGmfUHeZzaE9lYN0 T4GmjO2+zMebLRFBEY9kmiDc0jvSBmARLaT3SSWa2z9qs8oex12ettt+cgRVH/u9G9UP BeAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=CO1qRgAtXKRFhWJ3J++ZzpzPPN5PCSDrTQTPGTGvNCg=; b=GzqiiyocAaVS2zXQVWzphyzDlgsI7o+LLgCnO+fFBu4z4bf6gOFY9eV9GICWmncHal 5x3bm5VIfKkFUYSrOKjdRdmBIdaP3RwPDSBmPYEJzl/YfwbspqiE5aB6ltGePwGKfXL/ 5jjbNWNWTFIh1LCxvO1AvnriKXaGlt3QL2Hhkx/Yy/ju0YaWf6yTfsC/2rzIhTIpNAOs EhXXmnYOp9nKZW4DCCI5EsvkQXjlGuc99zQyBDcVND19kKt5Y+/B7EC93DbrbFTlxFyS HbicaAkksE6zyACLfZ6Yq3aCLvzqhDP3MSyacVwQQra00iWtso1VEB1Z044Kpgvmlvut W+5Q== X-Gm-Message-State: AMke39nOrPcNL15Dzn/mveEgJSlkrIULQcVhl1SWJeOrSxgDkyVFiuUnJ8nMNJqRw2a9usEnRK0Ln5tvhqESpw== X-Received: by 10.202.214.130 with SMTP id n124mr10831081oig.70.1486582616951; Wed, 08 Feb 2017 11:36:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.21.117 with HTTP; Wed, 8 Feb 2017 11:36:56 -0800 (PST) In-Reply-To: <874m04h42p.fsf@wanadoo.es> References: <877f51f7ze.fsf@wilson> <874m04h42p.fsf@wanadoo.es> From: Noam Postavsky Date: Wed, 8 Feb 2017 14:36:56 -0500 X-Google-Sender-Auth: OLxzGbexw69Lrg8mwVTWgsw8QUw Message-ID: Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 To: =?UTF-8?Q?=C3=93scar_Fuentes?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25652 Cc: 25652@debbugs.gnu.org, Torsten Bronger X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On Wed, Feb 8, 2017 at 2:31 PM, =C3=93scar Fuentes wrote: > Torsten Bronger writes: > >> In Emacs calc usind degree mode, cos(1) results in 0.540302305868 >> instead of 0.999847695156. >> >> >> In GNU Emacs 26.0.50.3 (x86_64-pc-linux-gnu) >> of 2017-02-08 built on wilson > > After pulling and building *right* *now* M-x version says > > GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, X toolkit) of 2017-02-08 > > Why the OP version is 26.0.50.3 ? The last number is the build number, and just counts the number of times you rebuilt Emacs locally, see #25590. > >> Repository revision: c8ee570a8be7afaae3ea318b9d7dbffb62a7bbd0 > > This revision exists and is one behind `master' on my checkout. > > BTW, I can't reproduce the problem following the recipe described by the > OP on his other message. > I can't reproduce it either, cos(1) gives the expected 0.999847695156 in degree mode. 4: 0 3: 0.999847695156 2: -0.448073616129 1: 0.540302305868 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 04:11:23 2017 Received: (at submit) by debbugs.gnu.org; 9 Feb 2017 09:11:23 +0000 Received: from localhost ([127.0.0.1]:60865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbkl8-0001iX-R6 for submit@debbugs.gnu.org; Thu, 09 Feb 2017 04:11:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbkl7-0001iK-DF for submit@debbugs.gnu.org; Thu, 09 Feb 2017 04:11:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbkl1-0006hm-2S for submit@debbugs.gnu.org; Thu, 09 Feb 2017 04:11:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbkl0-0006hi-Vh for submit@debbugs.gnu.org; Thu, 09 Feb 2017 04:11:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbkkz-000383-RO for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 04:11:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbkkw-0006gj-OC for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 04:11:13 -0500 Received: from [195.159.176.226] (port=55116 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbkkw-0006gZ-Hy for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 04:11:10 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cbkkj-0005s7-My for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2017 10:10:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: Torsten Bronger Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Thu, 09 Feb 2017 10:08:12 +0100 Organization: Phoenix Foundation Lines: 23 Message-ID: <87shnn7mv7.fsf@wilson.bronger.org> References: <877f51f7ze.fsf@wilson> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-PGP-Affinity: will accept encrypted message for GPG X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en Jabber-ID: torsten.bronger@jabber.rwth-aachen.de Mail-Copies-To: never Cancel-Lock: sha1:zrtUuylRjr7Y9RQxzIxBF6O97Cc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hallöchen! Okay, I have one computer on which I can reproduce this bug reliably, with "emacs -q" and a fresh checkout. And another computer on which the bug does not occur. The most significant difference is Ubuntu 16.04 vs Ubuntu 16.10. If I just wanted to gt rid of the problem, I would remove my git repo and make a fresh clone. However, maybe you are interested in me doing further tests before? Or should I just try to get rid of the problem? FWIW, at https://bob.ipv.kfa-juelich.de/bronger/emacs_bug_25652.tar.gz you can download my copy Emacs' source code (700MB, 10 MB/sec link). It also contains the script I use to update my local Emacs installation. Tschö, Torsten. -- Torsten Bronger From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 09:05:26 2017 Received: (at 25652) by debbugs.gnu.org; 9 Feb 2017 14:05:26 +0000 Received: from localhost ([127.0.0.1]:32782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbpLh-00021s-U8 for submit@debbugs.gnu.org; Thu, 09 Feb 2017 09:05:26 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:35708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbpLf-00021f-Lc for 25652@debbugs.gnu.org; Thu, 09 Feb 2017 09:05:24 -0500 Received: by mail-io0-f181.google.com with SMTP id j18so17317072ioe.2 for <25652@debbugs.gnu.org>; Thu, 09 Feb 2017 06:05:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=rVoV5iw2rjW3ZcqxmIFvFpG4hEmDD1wtt0Bm4MJX5qI=; b=Gzl7km8CiMTi2dAakYjB0X6FIh8rqG8dL9xcRuudzJ7NSdK9Jk8zDnnzzKht5Dot8J zTSl1WhKlmm7sVr4m8XHPCT5AL8LkIEpOxrfvImBmj+pYzLkE0LT51CSkNkk2PHNybiN akXWwIie8rviXEZde/UWiII/sdtG3UZdcCZmBOiPugKbYzqY9OE2XBzLdUUunHCKsubY oni0E0SIuC4VYq0Y9X1wXN4uauPo/TTRFX9WITyuzDT+VOMGWgMd1nuO60wOp/JNyvEV l+uXMHwQ9E+QVYEYw8ZnalqzNlz3he0nWZkwQppjr3vR84Acq+V5JaFYr+Aq/BPCoj8M c86A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=rVoV5iw2rjW3ZcqxmIFvFpG4hEmDD1wtt0Bm4MJX5qI=; b=O2g5jZDHTRNyYdDNxVYJZLRmKOC47nq+48p4DO17Zf2Fun+d6ozoJkqV72c1szy8eJ ojkn2kJ0XMouGvtl7eN26nUWZKrK/eFpsZVqS2AiZPvbpnUIESK4acmOhlvALoD/H+Dc sdBgu4CzPFbH7pbkX6B5CqXll43jqVgMp6hW8deue18OuLMfQLgRN1eqsiD4ACEt2yA5 Ika2SmFnCVJhWGpsCdko5BIWZNNC5OuokfluFsAXRNF8uZdtHKT69qG8GCB4n/kZlkH+ IwZxc4B8XoS+qAspDr+i6GVP1zmaep8DyBzPSoQ4ctSIH6UiAloWSXnOzZjVw4Oyh57K 1zhg== X-Gm-Message-State: AMke39lM2f+wGStMKsoFUQeQpY/DcexZS2imPwxu8HBUrzsm7okF+3PZbXfntJ9SjrHVRQ== X-Received: by 10.107.192.70 with SMTP id q67mr3619095iof.110.1486649118014; Thu, 09 Feb 2017 06:05:18 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 62sm523861itl.1.2017.02.09.06.05.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Feb 2017 06:05:17 -0800 (PST) From: npostavs@users.sourceforge.net To: 25652@debbugs.gnu.org Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> Date: Thu, 09 Feb 2017 09:06:27 -0500 In-Reply-To: <87shnn7mv7.fsf@wilson.bronger.org> (Torsten Bronger's message of "Thu, 09 Feb 2017 10:08:12 +0100") Message-ID: <87lgtfmpb0.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 25652 Cc: Torsten Bronger X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) Torsten Bronger writes: > Hall=C3=B6chen! > > Okay, I have one computer on which I can reproduce this bug > reliably, with "emacs -q" and a fresh checkout. And another > computer on which the bug does not occur. The most significant > difference is Ubuntu 16.04 vs Ubuntu 16.10. Does it happen also with "emacs -Q"? I think the uppercase version disables a few more customizations. Anyway, I suggest instrumenting calc-cos and stepping with edebug until something weird happens. PS: you have "Mail-Followup-To: bug-gnu-emacs@gnu.org" in your headers which is wrong, because followups should go to 25652@debbugs.gnu.org, so I ignored that and the "Mail-Copies-To: never" header. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 13:09:47 2017 Received: (at 25652) by debbugs.gnu.org; 9 Feb 2017 18:09:47 +0000 Received: from localhost ([127.0.0.1]:33410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbtAA-00018J-Tj for submit@debbugs.gnu.org; Thu, 09 Feb 2017 13:09:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbtA8-000184-VI for 25652@debbugs.gnu.org; Thu, 09 Feb 2017 13:09:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbtA2-0000hT-To for 25652@debbugs.gnu.org; Thu, 09 Feb 2017 13:09:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbt9p-0000ag-RM; Thu, 09 Feb 2017 13:09:25 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cbt9o-0007YB-Lb; Thu, 09 Feb 2017 13:09:24 -0500 From: Glenn Morris To: npostavs@users.sourceforge.net Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> <87lgtfmpb0.fsf@users.sourceforge.net> X-Spook: cracking keyhole Bomb threat Tsunami Capricorn Irish X-Ran: zJ73|`wPys0Nd.0~&t1^@$dQKHI:Y&Ng:~,"#HR8Q*[6LShFUSEy=U#>&py]@aCk~6td4c X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 09 Feb 2017 13:09:24 -0500 In-Reply-To: <87lgtfmpb0.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Thu, 09 Feb 2017 09:06:27 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25652 Cc: 25652@debbugs.gnu.org, Torsten Bronger X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) npostavs@users.sourceforge.net wrote: > PS: you have "Mail-Followup-To: bug-gnu-emacs@gnu.org" in your headers > which is wrong, because followups should go to 25652@debbugs.gnu.org, so > I ignored that and the "Mail-Copies-To: never" header. FWIW it's not wrong, in that bug-gnu-emacs@gnu.org and 25652@debbugs.gnu.org are equivalent, so long as one does not mess with the subject or references headers. But the latter is definitely better, and personally I would discourage use of MFT in general, since it often leads to people getting dropped from the reply chain. Anyway, what about this: Loading /home/bronger/.calc.el (source)...done I don't think this respects -Q? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 02:12:35 2017 Received: (at submit) by debbugs.gnu.org; 10 Feb 2017 07:12:35 +0000 Received: from localhost ([127.0.0.1]:33720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5Ni-0007wr-Od for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5Nh-0007wd-Ex for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5Nb-0005Ti-BX for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cc5Nb-0005Te-7y for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5Na-0005MX-2w for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:12:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5NV-0005SW-MU for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:12:26 -0500 Received: from [195.159.176.226] (port=33411 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc5NV-0005SC-FN for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:12:21 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cc4Ze-00019C-6p for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 07:20:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: Torsten Bronger Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Fri, 10 Feb 2017 07:17:42 +0100 Organization: Phoenix Foundation Lines: 53 Message-ID: <87shnmo9h5.fsf@wilson.bronger.org> References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> <87lgtfmpb0.fsf@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-PGP-Affinity: will accept encrypted message for GPG X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en Jabber-ID: torsten.bronger@jabber.rwth-aachen.de Mail-Copies-To: never Cancel-Lock: sha1:5owgH+vC0d46xCX/d4OtPWScxB8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hallöchen! Glenn Morris writes: > npostavs@users.sourceforge.net wrote: > >> PS: you have "Mail-Followup-To: bug-gnu-emacs@gnu.org" in your >> headers which is wrong, because followups should go to >> 25652@debbugs.gnu.org, so I ignored that and the "Mail-Copies-To: >> never" header. > > FWIW it's not wrong, in that bug-gnu-emacs@gnu.org and > 25652@debbugs.gnu.org are equivalent, so long as one does not mess > with the subject or references headers. But the latter is > definitely better, and personally I would discourage use of MFT in > general, since it often leads to people getting dropped from the > reply chain. I use gmane.org for using this mailing list like a newsgroup. Sorry if this causes trouble. If it is too much, I switch to ordinary mail, however, gmane really *is* convenient. > Anyway, what about this: > > Loading /home/bronger/.calc.el (source)...done This hint was very helpful! I totally forgot about my calc customization. (Well, it is slightly inconsistent that it is read by emacs -Q but anyway.) The error-provoking part in it is: (setq calc-simplify-mode 'units) You can toggle this in calc mode with "m U". So "m d m U 1 C m U 1 C" should exhibit the problem. Note that you have "Deg" active the whole time. The manual says about unit simplification: The functions sin, cos, and tan with arguments that have angular units like rad or arcmin are simplified by converting to base units (radians), then evaluating with the angular mode temporarily set to radians. While this explains part of my observations, I find it very confusing that "1 C" may yield 0.54 while in "Deg" mode. And, "90 C" always yielding zero is definitely inconsistent. "89.999 C" yields -0.447984214223 while in unit simplification mode, so the cosine is not continuous anymore. Tschö, Torsten. -- Torsten Bronger From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 03:01:10 2017 Received: (at submit) by debbugs.gnu.org; 10 Feb 2017 08:01:10 +0000 Received: from localhost ([127.0.0.1]:33741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc68k-0000fo-L9 for submit@debbugs.gnu.org; Fri, 10 Feb 2017 03:01:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc68j-0000fZ-0c for submit@debbugs.gnu.org; Fri, 10 Feb 2017 03:01:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc68d-0000tW-D4 for submit@debbugs.gnu.org; Fri, 10 Feb 2017 03:01:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cc68d-0000tO-At for submit@debbugs.gnu.org; Fri, 10 Feb 2017 03:01:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc68c-0006tA-17 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 03:01:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc68Y-0000qJ-6S for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 03:01:02 -0500 Received: from [195.159.176.226] (port=55047 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc68Y-0000q5-01 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 03:00:58 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cc68P-0003Jc-LI for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 09:00:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: Torsten Bronger Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Fri, 10 Feb 2017 08:59:13 +0100 Organization: Phoenix Foundation Lines: 21 Message-ID: <87o9yao4ry.fsf@wilson.bronger.org> References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> <87lgtfmpb0.fsf@users.sourceforge.net> <87shnmo9h5.fsf@wilson.bronger.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-PGP-Affinity: will accept encrypted message for GPG X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en Jabber-ID: torsten.bronger@jabber.rwth-aachen.de Mail-Copies-To: never Cancel-Lock: sha1:84Z2aFya+8A4Fri+ggtp3ESDpz0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hallöchen! Torsten Bronger writes: > [...] > > You can toggle this in calc mode with "m U". So "m d m U 1 C m U > 1 C" should exhibit the problem. Note that you have "Deg" active > the whole time. Unfortunately, my second machine still does not exhibit this problem, as doesn't probably yours. So I have to dig deeper. This is really odd, since both machines are so similar. (They even mount the same $HOME.) Tschö, Torsten. -- Torsten Bronger From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 11 05:16:41 2017 Received: (at submit) by debbugs.gnu.org; 11 Feb 2017 10:16:42 +0000 Received: from localhost ([127.0.0.1]:35338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccUjR-0002MD-O5 for submit@debbugs.gnu.org; Sat, 11 Feb 2017 05:16:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccUjQ-0002M1-FC for submit@debbugs.gnu.org; Sat, 11 Feb 2017 05:16:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccUjK-0004sm-1S for submit@debbugs.gnu.org; Sat, 11 Feb 2017 05:16:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccUjJ-0004si-Uf for submit@debbugs.gnu.org; Sat, 11 Feb 2017 05:16:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccUjI-0005RC-M4 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 05:16:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccUjF-0004sI-HU for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 05:16:32 -0500 Received: from [195.159.176.226] (port=53710 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccUjF-0004sD-A4 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 05:16:29 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ccUj5-0003RS-6A for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 11:16:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: Torsten Bronger Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Sat, 11 Feb 2017 11:16:20 +0100 Organization: Phoenix Foundation Lines: 26 Message-ID: <87fujlowwb.fsf@wilson.bronger.org> References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> <87lgtfmpb0.fsf@users.sourceforge.net> <87shnmo9h5.fsf@wilson.bronger.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-PGP-Affinity: will accept encrypted message for GPG X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en Jabber-ID: torsten.bronger@jabber.rwth-aachen.de Mail-Copies-To: never Cancel-Lock: sha1:Aw21cn2S3QcWEFpNpO8QvNm2ETQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hallöchen! Torsten Bronger writes: > [...] > > You can toggle this in calc mode with "m U". So "m d m U 1 C m U > 1 C" should exhibit the problem. Note that you have "Deg" active > the whole time. [...] After havin updated to current git master, I can now reproduce this on both of my machine. Can you confirm? > [...] > > And, "90 C" always yielding zero is definitely inconsistent. > "89.999 C" yields -0.447984214223 while in unit simplification mode, > so the cosine is not continuous anymore. As I can reproduce this. Tschö, Torsten. -- Torsten Bronger From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 11 09:13:53 2017 Received: (at submit) by debbugs.gnu.org; 11 Feb 2017 14:13:53 +0000 Received: from localhost ([127.0.0.1]:35402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccYQz-0001LU-8X for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccYQy-0001LF-9J for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccYQs-0003zs-2I for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccYQr-0003zn-VY for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccYQq-00027h-P6 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:13:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccYQn-0003z3-Jh for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:13:44 -0500 Received: from mail-it0-x231.google.com ([2607:f8b0:4001:c0b::231]:35723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccYQn-0003yp-Eg for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:13:41 -0500 Received: by mail-it0-x231.google.com with SMTP id 203so157441678ith.0 for ; Sat, 11 Feb 2017 06:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=UiYH2oYxxrb2gbsE2d/Sp+u6VQEcrGwT1SgpFjPM9ME=; b=FswT0wwbs2wnyI2oP0c6Eob0HAwxwm+WFXMyvyVo+5j+dI4bTF9gs8Y1X5H8NIVBts iaQZiY/BaDmTBqr5CB7Rx7vlsl6vR6kqPC1EokT/8LiwdTW8LbaijfO2K9TCWQD14v7r BiqlRShIvZBKeizj6Xz5HoiJlrDN6nOoWUqvGJDp3JOsr98ZNAfLtxCBbZUlJRhOIpy5 pIQTlt9jPU5GnZar7ww9Z633Njdj+braI5uYpy0lJCjG0tIARHIqDETkAqq6YuUL7QCW 6uQPAUD9xtEYkGaAIYfl5uW88YkcEsbpT4G/zpwofz025Sl6kl1G95nRCv+R0ReSRgfn zPpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=UiYH2oYxxrb2gbsE2d/Sp+u6VQEcrGwT1SgpFjPM9ME=; b=LfmGoiojq10wG8fkA5gXW98lQdsZrtXS/HveIIzyPbNEikYaPKufUvh/LB67mqnNFF vmzOTBuE97zv92E+JL6Ub7zXWxxv1a2Qdpq41y4Kf3NTnxYYpvm07dkfSCsM9PUf/ybK QMDin5OiwXaRFN7YaZPufArO6nzF9OLapFjoQ+mT15ifh21lVf11LmfisGzH/2T0ISSZ MhgMVXhtnVBmAv7mEGZUHqHNK6ZgjvNqnxOMueBvMn4ZvUp4M/BRTGQ+tfKxFxIqYHj+ Tush6J4UZN1Q9ml60SAXcxjfr81UIBdiGLRYXTumz6LVkCoVi/zcWrUb4r3FZ+r2VMv0 kCeA== X-Gm-Message-State: AMke39lRvn7RP8iTFQl4nVU2QGKPxH7/Dq/f4wgLBKpaoGDOjfc32yCn9tXRUV9oZY8wiw== X-Received: by 10.36.131.65 with SMTP id d62mr14184630ite.111.1486822419195; Sat, 11 Feb 2017 06:13:39 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id h15sm1727467ita.20.2017.02.11.06.13.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Feb 2017 06:13:38 -0800 (PST) From: npostavs@users.sourceforge.net To: bug-gnu-emacs@gnu.org Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> <87lgtfmpb0.fsf@users.sourceforge.net> <87shnmo9h5.fsf@wilson.bronger.org> <87fujlowwb.fsf@wilson.bronger.org> Date: Sat, 11 Feb 2017 09:14:49 -0500 In-Reply-To: <87fujlowwb.fsf@wilson.bronger.org> (Torsten Bronger's message of "Sat, 11 Feb 2017 11:16:20 +0100") Message-ID: <87zihslspy.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) tags 25652 confirmed retitle 25652 26.0.50; [calc] In Units Simplication + Degree mode cos(1 deg) != cos(1) quit Torsten Bronger writes: >> You can toggle this in calc mode with "m U". So "m d m U 1 C m U >> 1 C" should exhibit the problem. Note that you have "Deg" active >> the whole time. [...] > > After havin updated to current git master, I can now reproduce this > on both of my machine. Can you confirm? Yes, this happens in units simplication mode. Note that 'cos(1 deg) RET does give 0.999. It seems to be because of the fix for #23889 [1: 713e922243]. Tino, any ideas? 1: 2016-07-12 00:38:14 +0900 713e922243fb60d850f7b0ff83f3e2a3682f1832 Ignore angle mode while simplifying units From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 11 20:51:56 2017 Received: (at control) by debbugs.gnu.org; 12 Feb 2017 01:51:56 +0000 Received: from localhost ([127.0.0.1]:36070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccjKW-00078t-2a for submit@debbugs.gnu.org; Sat, 11 Feb 2017 20:51:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccjKV-00078i-28 for control@debbugs.gnu.org; Sat, 11 Feb 2017 20:51:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccjKO-0001V3-U6 for control@debbugs.gnu.org; Sat, 11 Feb 2017 20:51:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccjKO-0001Ux-Qw for control@debbugs.gnu.org; Sat, 11 Feb 2017 20:51:48 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ccjKO-0004Ao-Fk for control@debbugs.gnu.org; Sat, 11 Feb 2017 20:51:48 -0500 Subject: control message for bug 24655 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 11 Feb 2017 20:51:48 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 24655 by 25652 From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 12 22:40:18 2017 Received: (at 25652) by debbugs.gnu.org; 13 Feb 2017 03:40:18 +0000 Received: from localhost ([127.0.0.1]:37664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd7Uv-0001IS-Sx for submit@debbugs.gnu.org; Sun, 12 Feb 2017 22:40:18 -0500 Received: from mail-pg0-f50.google.com ([74.125.83.50]:33950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd7Us-0001ID-Vu for 25652@debbugs.gnu.org; Sun, 12 Feb 2017 22:40:15 -0500 Received: by mail-pg0-f50.google.com with SMTP id 14so28482803pgg.1 for <25652@debbugs.gnu.org>; Sun, 12 Feb 2017 19:40:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:user-agent:mime-version; bh=JzAva2Kdb4IbKthIB8HIz0O+VbhkllqsQyeuspNcVnk=; b=OZb+Z2DAXtNjrKCPwEzdR/vweHL38BBHqsEitidF4A4jL2IHKIaFLibDJXRGvzNuYr qZxCwlEFsO3/q95A6wTk6cVeCbnA/5tT+DsujP32yTolPlC0/JBdo/Oi2oTe2nJpgXAE S5RvvWQhrUBfZ0yFRtUaiBgzuIdUZiC2ABFm32KraAP1NctXMEzsHjV2JcDOljCatTbQ Si7DAj4JUU5hCFEcqkPgttQt3RlkGIo5t2rmtFTayekWvuk3iUNAojhLDcGCj0Fa8vZI GGuX4XJPfsAfYMLRxSRMuBuK02tUb+soY78LasMPGYRPVRxg/wE0YwKjQfwkAb3/CMBT aicA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:user-agent :mime-version; bh=JzAva2Kdb4IbKthIB8HIz0O+VbhkllqsQyeuspNcVnk=; b=ZeyMMpvGEYkHxbNGwWj/B3/dLkvHvMYaLp5oSZ5E2mTHE/uUBNnEkTx1ROB2DQk84c Lf0O7VaIzmxqCO2dz/q2PiD7Ic9HZVi2C8aiR5zPnvpx0NnjQLdLZn8SDDZBtiNNmw9m NTsaPWRH59ZGP5Yweg0I0CNCplbCkJUmH9jVp6fcW/EZIKQIwvnfkOannqqvN2N6EM2r CFmoNCNoBvqnlwFfo8fVBphHjOuyA5Lx/9OVhqlNiHiBzekOdWXBdoAGmml4JsBC4kgK tkVLyRURt/ikXdVsFa381S5Z94ukVoJw84cVrUY8DO4nIJFpOVCwbokVlbgD4WigHpiz xgwA== X-Gm-Message-State: AMke39kPX7Ieq8rqlqmGB4moWKyuB1b1+K+3zG0MAqethaiQyM6xNbEKsT7+PvTrvV+spA== X-Received: by 10.84.177.129 with SMTP id x1mr26777739plb.75.1486957208569; Sun, 12 Feb 2017 19:40:08 -0800 (PST) Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id l22sm17335910pgc.43.2017.02.12.19.40.06 for <25652@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Feb 2017 19:40:08 -0800 (PST) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Mon, 13 Feb 2017 12:40:05 +0900 (JST) X-X-Sender: calancha@calancha-pc To: 25652@debbugs.gnu.org Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25652 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) [Forwading to the bug thread: Sorry if you receive this message twice] npostavs@users.sourceforge.net writes: > tags 25652 confirmed > retitle 25652 26.0.50; [calc] In Units Simplication + Degree mode cos(1 deg) != cos(1) > quit > > Torsten Bronger writes: >>> You can toggle this in calc mode with "m U". So "m d m U 1 C m U >>> 1 C" should exhibit the problem. Note that you have "Deg" active >>> the whole time. [...] >> >> After havin updated to current git master, I can now reproduce this >> on both of my machine. Can you confirm? > > Yes, this happens in units simplication mode. Note that 'cos(1 deg) RET > does give 0.999. It seems to be because of the fix for #23889 [1: > 713e922243]. Tino, any ideas? > > 1: 2016-07-12 00:38:14 +0900 713e922243fb60d850f7b0ff83f3e2a3682f1832 > Ignore angle mode while simplifying units Yes, my commit produced this bug. We must revert it. Sorry for that. That commit was to fix Bug#23889. It would be nice if we can fix Bug#23889 in a new way. In that bug the problem was that, if the user inputs a symbolic expression containning an angle unit, then this unit is overriden by calc-angle-mode while simplifying such expression. That should not happen as mentioned in the manual: (info "(calc) Trigonometric and Hyperbolic Functions") That is, M-x calc RET m d ; Set calc-angle-mode to degrees. ' sin (45 deg) RET u s ; Must insert the value of: (sin (* 45 pi (/ 180.0))) ;; But instead, inserts the value of: (sin (* 45 (expt (/ pi 180.0) 2))) ;; i.e., it's applying (/ pi 180) twice. I have updated the patch: 1) Revert 713e922243 2) Bind calc-angle-mode to 'rad while simplifying an expression whenever such expression contains an unit angle. This way, hopefully, the second factor (/ pi 180) won't be applied. Opinions, comments... ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >From 1a2592409c0fcfca7826b71248d3d3d234355c13 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Sun, 12 Feb 2017 21:14:34 +0900 Subject: [PATCH 1/2] Revert 'Ignore angle mode while simplifying units' This commit (713e922243) cause regressions (Bug#25652). --- lisp/calc/calc-forms.el | 12 +++--------- lisp/calc/calc-math.el | 12 ++++-------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el index 6aa421ec20..abf76cf07e 100644 --- a/lisp/calc/calc-forms.el +++ b/lisp/calc/calc-forms.el @@ -317,9 +317,7 @@ math-to-hms (list 'calcFunc-hms a)) ((math-negp a) (math-neg (math-to-hms (math-neg a) ang))) - ((eq (or ang - (and (not math-simplifying-units) calc-angle-mode)) - 'rad) + ((eq (or ang calc-angle-mode) 'rad) (math-to-hms (math-div a (math-pi-over-180)) 'deg)) ((memq (car-safe a) '(cplx polar)) a) (t @@ -356,16 +354,12 @@ math-from-hms (if (eq (car-safe a) 'sdev) (math-make-sdev (math-from-hms (nth 1 a) ang) (math-from-hms (nth 2 a) ang)) - (if (eq (or ang - (and (not math-simplifying-units) calc-angle-mode)) - 'rad) + (if (eq (or ang calc-angle-mode) 'rad) (list 'calcFunc-rad a) (list 'calcFunc-deg a))))) ((math-negp a) (math-neg (math-from-hms (math-neg a) ang))) - ((eq (or ang - (and (not math-simplifying-units) calc-angle-mode)) - 'rad) + ((eq (or ang calc-angle-mode) 'rad) (math-mul (math-from-hms a 'deg) (math-pi-over-180))) (t (math-add (math-div (math-add (math-div (nth 3 a) diff --git a/lisp/calc/calc-math.el b/lisp/calc/calc-math.el index 2590761d53..faa318d45d 100644 --- a/lisp/calc/calc-math.el +++ b/lisp/calc/calc-math.el @@ -763,14 +763,12 @@ calcFunc-nroot (defun math-to-radians (a) ; [N N] (cond ((eq (car-safe a) 'hms) (math-from-hms a 'rad)) - ((and (not math-simplifying-units) - (memq calc-angle-mode '(deg hms))) + ((memq calc-angle-mode '(deg hms)) (math-mul a (math-pi-over-180))) (t a))) (defun math-from-radians (a) ; [N N] - (cond ((and (not math-simplifying-units) - (eq calc-angle-mode 'deg)) + (cond ((eq calc-angle-mode 'deg) (if (math-constp a) (math-div a (math-pi-over-180)) (list 'calcFunc-deg a))) @@ -781,16 +779,14 @@ math-from-radians (defun math-to-radians-2 (a &optional force-symbolic) ; [N N] (cond ((eq (car-safe a) 'hms) (math-from-hms a 'rad)) - ((and (not math-simplifying-units) - (memq calc-angle-mode '(deg hms))) + ((memq calc-angle-mode '(deg hms)) (if (or calc-symbolic-mode force-symbolic) (math-div (math-mul a '(var pi var-pi)) 180) (math-mul a (math-pi-over-180)))) (t a))) (defun math-from-radians-2 (a &optional force-symbolic) ; [N N] - (cond ((and (not math-simplifying-units) - (memq calc-angle-mode '(deg hms))) + (cond ((memq calc-angle-mode '(deg hms)) (if (or calc-symbolic-mode force-symbolic) (math-div (math-mul 180 a) '(var pi var-pi)) (math-div a (math-pi-over-180)))) -- 2.11.0 >From b1b6f62f5baa8023a7b5d45b1d30399c8e8f82a2 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Sun, 12 Feb 2017 21:45:47 +0900 Subject: [PATCH 2/2] Prevent from override input angle unit while simplifying Ignore calc-angle-mode while simplifying if the expression contains angle units (Bug#23899). * lisp/calc/calc-alg.el (calc-input-angle-units): New defun. (math-simplify): If TOP-EXPR contains angle units, then bind calc-angle-mode to 'rad. * test/lisp/calc/calc-tests.el (test-calc-23889): New test. --- lisp/calc/calc-alg.el | 9 +++++++++ test/lisp/calc/calc-tests.el | 46 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/lisp/calc/calc-alg.el b/lisp/calc/calc-alg.el index 4e63d238c7..9db901a975 100644 --- a/lisp/calc/calc-alg.el +++ b/lisp/calc/calc-alg.el @@ -355,10 +355,19 @@ math-hyperbolic-trig-rewrite ;; math-simplify-step, which is called by math-simplify. (defvar math-top-only) +(defun calc-input-angle-units (input) + (cond ((math-expr-contains input '(var deg var-deg)) 'deg) + ((math-expr-contains input '(var rad var-rad)) 'rad) + ((math-expr-contains input '(var hms var-hms)) 'hms) + (t nil))) + ;; math-normalize-error is declared in calc.el. (defvar math-normalize-error) (defun math-simplify (top-expr) (let ((math-simplifying t) + (calc-angle-mode (if (calc-input-angle-units top-expr) + 'rad + calc-angle-mode)) (math-top-only (consp calc-simplify-mode)) (simp-rules (append (and (calc-has-rules 'var-AlgSimpRules) '((var AlgSimpRules var-AlgSimpRules))) diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el index 8f56d48d01..45b735c3c6 100644 --- a/test/lisp/calc/calc-tests.el +++ b/test/lisp/calc/calc-tests.el @@ -86,6 +86,52 @@ calc-tests-simple (math-read-expr "1m") "cm") '(* -100 (var cm var-cm))))) +(ert-deftest test-calc-23889 () + "Test for http://debbugs.gnu.org/23889 and 25652." + (dolist (mode '(deg rad)) + (let ((calc-angle-mode mode)) + ;; If user inputs angle units, then should ignore `calc-angle-mode'. + (should (string= "5253" + (substring + (number-to-string + (nth 1 + (math-simplify-units + '(calcFunc-cos (* 45 (var rad var-rad)))))) + 0 4))) + (should (string= "7071" + (substring + (number-to-string + (nth 1 + (math-simplify-units + '(calcFunc-cos (* 45 (var deg var-deg)))))) + 0 4))) + (should (string= "8939" + (substring + (number-to-string + (nth 1 + (math-simplify-units + '(+ (calcFunc-sin (* 90 (var rad var-rad))) + (calcFunc-cos (* 90 (var deg var-deg))))))) + 0 4))) + (should (string= "5519" + (substring + (number-to-string + (nth 1 + (math-simplify-units + '(+ (calcFunc-sin (* 90 (var deg var-deg))) + (calcFunc-cos (* 90 (var rad var-rad))))))) + 0 4))) + ;; If user doesn't input units, then must use `calc-angle-mode'. + (should (string= (if (eq calc-angle-mode 'deg) + "9998" + "5403") + (substring + (number-to-string + (nth 1 + (math-simplify-units + '(calcFunc-cos 1)))) + 0 4)))))) + (provide 'calc-tests) ;;; calc-tests.el ends here -- 2.11.0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.7) of 2017-02-12 Repository revision: 862d6438cfa6c6c035033697751f3d002357b024 From debbugs-submit-bounces@debbugs.gnu.org Wed May 17 23:30:43 2017 Received: (at 25652) by debbugs.gnu.org; 18 May 2017 03:30:43 +0000 Received: from localhost ([127.0.0.1]:51621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBC9D-0000Ik-2C for submit@debbugs.gnu.org; Wed, 17 May 2017 23:30:43 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:33247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBC9C-0000DK-7Z for 25652@debbugs.gnu.org; Wed, 17 May 2017 23:30:42 -0400 Received: by mail-io0-f193.google.com with SMTP id m4so3335058ioe.0 for <25652@debbugs.gnu.org>; Wed, 17 May 2017 20:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=p/UBKHBvAT63dcptKIjj4uSitC5KXgkCNlX2tqX21EY=; b=gWCmnIngZZQBF/8OBURjsSAT67bCSvdAvX+PV3ADp1X2xBRxOEAMQT1UtfFff/jlty 3lklg1sGCPmUpeMRI9CoQNuoHwfjJNhXnEWBWLCQDzy7BD15LV2qvtmU77AMw0O4s375 CBt68qOJpxnn5p+ZBuEq0UYPZ/iu2amNaRWFzlrNTpm7uokBu8eJMGmuZSxG3vT3Inoj vbiuYWa4OFlgm+RmOO15FMmpuv2h3Rh3uWv+/tqhA82CDoXIG++SpYCSPz0NO1tBhWMj /MiTEB7lYvcvS2smkeEyEN6W533iFftRR3ME/nPkXq5vepPkEhwBrWR/vQ0/IgV5xE8s spvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=p/UBKHBvAT63dcptKIjj4uSitC5KXgkCNlX2tqX21EY=; b=MukujLuzhNugh+ZlseFSr4qYa8twNlrGQL05wNEUtKjfQWqwmIMiMpJg29yAUexY6+ F78M06KlX+G/kj9sysKWIa5iVgS5cg/w0DEYwZUA1IAkuPPbOP9GF/bMp1jDLKswvTYO OLVUN7AfUGict1MgD1DQIZjb+8JcY3fhZcSDfyW9NXTC4fOBsKDG/7I/ecuyz2R0OgoU H8Vhr6xolJofuo/9nm5bM0UlCKwwcxKgcQF1/F/tMXtW+l/Jz8kZVbXa3dmLmCVLE0FS 5j/xgRUJvZLTkMlqhmHO9lYMJaKYmT2tgBitKMN9DwpLq1VR6f3WJ4QZ0bF4GlUG56Qm DGog== X-Gm-Message-State: AODbwcCl4q8FO+GRQcvr1N5hItK6KlH5nEnJMfRIYXaSFkMZzLUeMQNZ S7bUN/wpFJMMFQ== X-Received: by 10.107.62.139 with SMTP id l133mr2417899ioa.213.1495078236627; Wed, 17 May 2017 20:30:36 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id u200sm2041116itb.29.2017.05.17.20.30.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 May 2017 20:30:36 -0700 (PDT) From: npostavs@users.sourceforge.net To: Tino Calancha Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 References: <877f51f7ze.fsf@wilson> Date: Wed, 17 May 2017 23:32:12 -0400 In-Reply-To: (Tino Calancha's message of "Mon, 13 Feb 2017 12:40:05 +0900 (JST)") Message-ID: <87d1b6j0w3.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 25652 Cc: 25652@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Tino Calancha writes: > Yes, my commit produced this bug. We must revert it. Sorry for that. > That commit was to fix Bug#23889. It would be nice if we can fix Bug#23889 in > a new way. > In that bug the problem was that, if the user inputs a symbolic expression containning > an angle unit, then this unit is overriden by calc-angle-mode while simplifying such > expression. > That should not happen as mentioned in the manual: > (info "(calc) Trigonometric and Hyperbolic Functions") > > That is, > M-x calc RET > m d ; Set calc-angle-mode to degrees. > ' sin (45 deg) RET > u s ; Must insert the value of: (sin (* 45 pi (/ 180.0))) > ;; But instead, inserts the value of: (sin (* 45 (expt (/ pi 180.0) 2))) > ;; i.e., it's applying (/ pi 180) twice. > > I have updated the patch: > 1) Revert 713e922243 > > 2) Bind calc-angle-mode to 'rad while simplifying an expression whenever such > expression contains an unit angle. This way, hopefully, the second factor (/ pi 180) > won't be applied. > > Opinions, comments... I'm not familiar enough with calc to say if this is a good idea or not, but I guess you may as well push this now so that we can discover if it has any problems sooner rather than later. From debbugs-submit-bounces@debbugs.gnu.org Thu May 18 01:52:00 2017 Received: (at 25652-done) by debbugs.gnu.org; 18 May 2017 05:52:00 +0000 Received: from localhost ([127.0.0.1]:51748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBELw-00056m-KZ for submit@debbugs.gnu.org; Thu, 18 May 2017 01:52:00 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBELu-00056D-T4 for 25652-done@debbugs.gnu.org; Thu, 18 May 2017 01:51:59 -0400 Received: by mail-pf0-f176.google.com with SMTP id n23so18370152pfb.2 for <25652-done@debbugs.gnu.org>; Wed, 17 May 2017 22:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=H5p/5lmzmn5XyYx+MgoDTyFBEw/EMG13Ii4FnoR01EA=; b=nOhlOOj1LpFpAFrv6C9L2obiNj0WUsy8F78nXFI3h/PL4nMtJDbOEkbqilDn7dGBxc beMnqwaj8rvPqzoE2er/uM3EKlMbHYpYXdO23SlJaVUk9z/ZQA9Ilm3v6SY2wpULhwYD BPDBwRtpO9cmZ6x1bO7fqgSDTZzS8bH1ZvAeTFFB40XZSeLRnYF83WJoQUTkne0ItWip f7LBsz7DbddH9gy95L0eN8wKwRB29Z8r90+OVCMdm2I3rTHAdZ8Ne1Ov83srFm+Atf+C c4QmuEg3nIjrf5FnKGzWAdO/qnyN6BAumGSqrsuCciZZRS6H6tKVXLaPAn16SFfAlRwO q5uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=H5p/5lmzmn5XyYx+MgoDTyFBEw/EMG13Ii4FnoR01EA=; b=QQYJh2+ZVoI8F2xwHBA4m0pMBEnaFj0d0u/nytYps+GpbgYLnACYYrai9PWqosl8Fm P4uW2AI+MBcPmLi/XZ77fvjKZBUs3isFPt7hTA/NssjxpEhoLmVOvN/ugeDtyDdQ5toU dM6/GY1jPnkvVsYZC3KRi8Wl8IvqFJ56lRLxflUB2iKvlyCGUK+yCobS/C2O6o9vthDe B4vHw12HVFdqliHq+cFrsZsmlwrOxOLNomxeg7xdJx8Jhq5wCOAE+ilaxsLp9OtQ7KJ+ fy79u7OblEdYLZaP6ijU4MWkZyQ7iEs0KmN7pU6dPuo6rteBh8WGYJnXz/J/7SZBuEgO Wmjg== X-Gm-Message-State: AODbwcD/X7lNMgW3sYjGaWJXzYpVt114CebSozh4AKgrJPu5U+efauzv 6Ul7eKTxrJQ1Yk1K X-Received: by 10.84.232.76 with SMTP id f12mr2746253pln.101.1495086712673; Wed, 17 May 2017 22:51:52 -0700 (PDT) Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id d2sm9538146pgf.46.2017.05.17.22.51.49 for <25652-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 May 2017 22:51:50 -0700 (PDT) From: Tino Calancha To: 25652-done@debbugs.gnu.org Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 References: <877f51f7ze.fsf@wilson> <87d1b6j0w3.fsf@users.sourceforge.net> Date: Thu, 18 May 2017 14:51:46 +0900 In-Reply-To: <87d1b6j0w3.fsf@users.sourceforge.net> (npostavs's message of "Wed, 17 May 2017 23:32:12 -0400") Message-ID: <878tlu3e6l.fsf@calancha-pc> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25652-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) npostavs@users.sourceforge.net writes: > Tino Calancha writes: > >> Yes, my commit produced this bug. We must revert it. Sorry for that. >> That commit was to fix Bug#23889. It would be nice if we can fix Bug#23889 in >> a new way. >> In that bug the problem was that, if the user inputs a symbolic expression containning >> an angle unit, then this unit is overriden by calc-angle-mode while simplifying such >> expression. >> That should not happen as mentioned in the manual: >> (info "(calc) Trigonometric and Hyperbolic Functions") >> >> That is, >> M-x calc RET >> m d ; Set calc-angle-mode to degrees. >> ' sin (45 deg) RET >> u s ; Must insert the value of: (sin (* 45 pi (/ 180.0))) >> ;; But instead, inserts the value of: (sin (* 45 (expt (/ pi 180.0) 2))) >> ;; i.e., it's applying (/ pi 180) twice. >> >> I have updated the patch: >> 1) Revert 713e922243 >> >> 2) Bind calc-angle-mode to 'rad while simplifying an expression whenever such >> expression contains an unit angle. This way, hopefully, the second factor (/ pi 180) >> won't be applied. >> >> Opinions, comments... > > I'm not familiar enough with calc to say if this is a good idea or not, > but I guess you may as well push this now so that we can discover if it > has any problems sooner rather than later. Thank you. I've reverted my buggy fix, and pushed a new fix for Bug#23889 into master: Revert: eab1a6307b09180bd775cfb6bf7330eb5367bbe0 Fix: c48e539226a062d01b8d5534644fae959506a743 From unknown Sat Aug 16 10:48:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 15 Jun 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator