From: Neon Absentius <absent@sdf.lonestar.org>
Subject: ln(0), bug in Calc?
Date: Thu, 6 Oct 2005 11:32:03 +0000 [thread overview]
Message-ID: <20051006113203.GF992@SDF.LONESTAR.ORG> (raw)
When asked to solve the equation e^x = 0, Calc returns ln(0) as the answer.
It indicates in the echo area:
Logarithm of zero: 0 [w=more] ;; I press w
Choosing 0 for arbitrary integer in solution [w=more] ;; I press w
Logarithm of zero: 0 [w=more] ;; I press w
Number expected: e [w=more] ;; I press w
Number expected: e ;; I press w
(No further explanations available)
Apparently when the argument of log is non-positive Calc switches to
the (multivalued) complex logarithm and sets the integer in the
formula to 0. Of course this doesn't make sence when the argument of
the logarithm is 0. This is confirmed by setting the Hyperbolic flag.
Then I get the answer
x = (s1 > 0 ? []_n1 : ln(0) + 2 pi i n2)
and in the echo area "Logarithm of zero: 0".
--
There is no national science just as there is no national
multiplication table; what is national is no longer science.
-- Anton Checov
next reply other threads:[~2005-10-06 11:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 11:32 Neon Absentius [this message]
[not found] <mailman.10048.1128598384.20277.help-gnu-emacs@gnu.org>
2005-10-07 20:20 ` ln(0), bug in Calc? 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
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=20051006113203.GF992@SDF.LONESTAR.ORG \
--to=absent@sdf.lonestar.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.
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).