From: Jay Belanger <jay.p.belanger@gmail.com>
To: Wolfgang Jenkner <wjenkner@inode.at>
Cc: 19582@debbugs.gnu.org
Subject: bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units
Date: Tue, 13 Jan 2015 10:34:46 -0600 [thread overview]
Message-ID: <87bnm263mh.fsf@vh213601.truman.edu> (raw)
In-Reply-To: <85387e8x70.fsf@iznogoud.viz> (Wolfgang Jenkner's message of "Tue, 13 Jan 2015 17:25:23 +0100")
>> Since 100 and (float 1 2) aren't the same, that might be a bug of some
>> kind.
>
> Sure, but
>
> (math-equal 100 '(float 1 2)) => t
>
> and (info "(calc) Predicates") states
>
> -- Function: math-equal x y
> Returns true if X and Y are numerically equal, either because they
> are `equal', or because their difference is `zerop'. [...]
>
> so, IIUC, mathematically, they are as equal as it gets in calc.
Ah, right. But the same calculations on the same objects should produce
results which are equal, not just math-equal.
> On the other hand, I'm not sure if calculations with (float ...)
> are exact (if possible) in calc ?
Calc will do the exact computations, since internally it uses base 10 to
represents floats. Of course, the user might not consider (float ...)s
to be exact.
next prev parent reply other threads:[~2015-01-13 16:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-13 14:22 bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units Wolfgang Jenkner
2015-01-13 15:55 ` Jay Belanger
2015-01-13 16:01 ` Wolfgang Jenkner
2015-01-13 16:06 ` Jay Belanger
2015-01-13 16:25 ` Wolfgang Jenkner
2015-01-13 16:34 ` Jay Belanger [this message]
2015-01-13 16:48 ` Jay Belanger
2015-01-15 23:55 ` Wolfgang Jenkner
2015-01-18 16:29 ` Wolfgang Jenkner
2016-02-23 11:23 ` Lars Ingebrigtsen
2015-01-13 19:39 ` Wolfgang Jenkner
2015-01-13 21:57 ` Jay Belanger
2015-01-28 4:45 ` Compiled file behaves differently than the uncompiled file (Was Re: bug#19582) Jay Belanger
2015-01-28 8:42 ` David Kastrup
2015-01-28 13:33 ` Jay Belanger
2015-01-28 15:11 ` bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units Jay Belanger
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=87bnm263mh.fsf@vh213601.truman.edu \
--to=jay.p.belanger@gmail.com \
--cc=19582@debbugs.gnu.org \
--cc=wjenkner@inode.at \
/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.