unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Ongaro <david.ongaro@hamburg.de>
To: emacs-devel@gnu.org
Subject: Calc; calc-simplify-units not working as documented for trigometric functions
Date: Fri, 01 Jul 2016 16:31:30 -0700	[thread overview]
Message-ID: <lz8txlx7e5.fsf@hamburg.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 HyperbolicFunctions".

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



Emacs  : GNU Emacs 25.0.94.1 (x86_64-apple-darwin15.5.0, NS appkit-1404.47 Version 10.11.5 (Build 15F34))
 of 2016-06-09
Package: Calc



             reply	other threads:[~2016-07-01 23:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-01 23:31 David Ongaro [this message]
2016-07-03 13:35 ` Calc; calc-simplify-units not working as documented for trigometric functions H. Dieter Wilhelm
2016-07-03 13:53   ` Kaushal Modi
2016-07-03 15:32   ` Eli Zaretskii
2016-07-03 17:52     ` H. Dieter Wilhelm

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=lz8txlx7e5.fsf@hamburg.de \
    --to=david.ongaro@hamburg.de \
    --cc=emacs-devel@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 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).