all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
To: 23889@debbugs.gnu.org
Subject: bug#23889: 25.0.95; Calc; calc-simplify-units not working as documented for trigometric functions
Date: Sun, 03 Jul 2016 19:05:17 +0200	[thread overview]
Message-ID: <87k2h2odo2.fsf@duenenhof-wilhelm.de> (raw)


In Calc do

'sin(45 deg)
u s

Result: 0.0137073546047
Expected result: 0.707106781187

The actual result equals to sin(pi/4) in deg mode whereas the expected
result of "the sine of 45 degrees" is the one documented in
(info "(calc) Trigonometric and Hyperbolic Functions").

The same applies for other trigonometric functions and for other values
of 45 or the 'deg' unit (i.e. 'rad or 'grad').

This was originally a bug report from David Ongaro in 
http://lists.gnu.org/archive/html/emacs-devel/2016-07/msg00050.html

Thanks
        Dieter




In GNU Emacs 25.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
 of 2016-06-19 built on urmel
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description:	Debian GNU/Linux 8.5 (jessie)

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: en_GB.utf8
  locale-coding-system: utf-8-unix

Major mode: Info

Minor modes in effect:
  show-paren-mode: t
  electric-pair-mode: t
  icomplete-mode: t
  global-hl-line-mode: t
  shell-dirtrack-mode: t
  display-time-mode: t
  auto-insert-mode: t
  server-mode: t
  minibuffer-depth-indicate-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent messages:
Mark set [12 times]
Mark activated
Mark set
Auto-saving...done
Contacting host: lists.gnu.org:80
Mark set [2 times]
Mark saved where search started
Mark set [2 times]
Mark saved where search started
mwheel-scroll: Beginning of buffer

Load-path shadows:
None found.

Features:
(shadow emacsbug shr-color color pp flow-fill eww url-queue qp shr dom
debug calc-undo calc-help pulse xref project eieio-opt calc-units
calc-math calc-arith calc-misc calccomp calc-aent calc-alg calc-menu
nndoc debbugs-gnu add-log debbugs soap-client warnings rng-xsd rng-dt
rng-util xsd-regexp canlock misearch multi-isearch bbdb-message
mailalias sendmail flyspell ispell nnir sort smiley gnus-cite mail-extr
gnus-async gnus-bcklg gnus-kill gnus-dup gnus-ml disp-table gnus-topic
mm-archive url-http url-gw url-cache url-auth url-handlers nnrss xml
mm-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util nndraft nnmh utf-7 nnmbox nnfolder
time-stamp bbdb-gnus bbdb-mua epa-file epa derived network-stream nsm
starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg
gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp
gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap
nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec
gnus-int gnus-range message rfc822 mml mml-sec epg mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums gmm-utils
mailheader gnus-win gnus gnus-ems nnheader mail-utils wid-edit ffap
url-parse url-vars paren elec-pair icomplete hl-line dired-x ob-maxima
ob-latex ob-sh ob-calc calc-store calc-trail calc-ext ob-R ob-python
ox-koma-letter ox-beamer ox-rss ox-taskjuggler ox-latex ox-icalendar
ox-html ox-ascii ox-publish ox ido ess-toolbar ess-mouse mouseme
thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode
ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a ess-sta-d ess-sta-l
cc-vars cc-defs make-regexp ess-sp6-d ess-sp3-d ess-julia ess-r-d
ess-tracebug compile tramp tramp-compat tramp-loaddefs trampver
ucs-normalize shell ess-roxy advice hideshow ess-help reporter
ess-developer ess-r-args ess-s-l speedbar sb-image ezimage dframe ess
ess-inf ess-mode ess-noweb-mode edmacro kmacro ess-utils cl ess-custom
executable ess-compat ess-site org-mobile org-agenda calc calc-loaddefs
calc-macs auth-source cl-seq eieio eieio-core cl-macs mm-util help-fns
mail-prsvr password-cache view cal-china lunar solar cal-dst cal-bahai
cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs
battery time bbdb-print bbdb-com crm mailabbrev bbdb bbdb-site timezone
bbdb-loaddefs org-element org-rmail org-mhe org-irc org-info org-gnus
gnus-util org-docview doc-view subr-x jka-compr image-mode dired
org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote
org-pcomplete pcomplete org-list org-faces org-entities noutline outline
easy-mmode org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval
org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar
cal-loaddefs autoinsert server mb-depth finder-inf info package
epg-config 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 x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help
simple abbrev 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
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 821555 68008)
 (symbols 48 62134 0)
 (miscs 40 8505 2890)
 (strings 32 156791 19382)
 (string-bytes 1 4740983)
 (vectors 16 70983)
 (vector-slots 8 1215228 38104)
 (floats 8 1492 549)
 (intervals 56 11764 1170)
 (buffers 976 55)
 (heap 1024 98278 29923))

-- 
Best wishes
H. Dieter Wilhelm
Kelkheim, Germany





             reply	other threads:[~2016-07-03 17:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-03 17:05 H. Dieter Wilhelm [this message]
2016-07-04  8:18 ` bug#23889: 25.0.95; Calc; calc-simplify-units not working as documented for trigometric functions Tino Calancha
2016-07-11 15:41 ` bug#23889: (no subject) Tino Calancha

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

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

  git send-email \
    --in-reply-to=87k2h2odo2.fsf@duenenhof-wilhelm.de \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=23889@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.