From: Eli Zaretskii <eliz@gnu.org>
To: Christopher Howard <christopher.howard@qlfiles.net>
Cc: emacs-devel@gnu.org
Subject: Re: Calc; Div by 0 in solving system
Date: Mon, 22 Apr 2019 09:23:04 +0300 [thread overview]
Message-ID: <83lg028son.fsf@gnu.org> (raw)
In-Reply-To: <1555861067.5469.3.camel@qlfiles.net> (message from Christopher Howard on Sun, 21 Apr 2019 07:37:47 -0800)
> From: Christopher Howard <christopher.howard@qlfiles.net>
> Date: Sun, 21 Apr 2019 07:37:47 -0800
>
> Place this on stack with algebriac mode:
>
> [2 * x - 3 * y + z = 5, x + y - 2 * z = 0, -x + 2 * y + 3 * z = -3]
>
> run command 'a S x,y,z'
>
> Receive error 'Division by zero: 1'
>
> I enabled Debug on Error but could not find the backtrace
Here's the backtrace, obtained by setting debug-on-message to
"Division by zero":
Debugger entered--Lisp error: "Division by zero: 1."
message("%s%s" "Division by zero: 1." "")
calc-explain-why((* "Division by zero" (float 1 0)) nil)
calc-do-handle-whys()
calc-handle-whys()
calc-enter-result(1 "solv" (calcFunc-solve (vec (calcFunc-eq (+ (- (* 2 (var x var-x)) (* 3 (var y var-y))) (var z var-z)) 5) (calcFunc-eq (- (+ (var x var-x) (var y var-y)) (* 2 (var z var-z))) 0) (calcFunc-eq (+ (- (* 2 (var y var-y)) (var x var-x)) (* 3 (var z var-z))) -3)) (vec (var x var-x) (var y var-y) (var z var-z))))
#f(compiled-function () #<bytecode 0x2000000001d6b378>)()
calc-do(#f(compiled-function () #<bytecode 0x2000000001d6b378>) 102)
calc-solve-for("x,y,z")
funcall-interactively(calc-solve-for "x,y,z")
call-interactively(calc-solve-for nil nil)
command-execute(calc-solve-for)
next prev parent reply other threads:[~2019-04-22 6:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-21 15:37 Calc; Div by 0 in solving system Christopher Howard
2019-04-22 6:23 ` Eli Zaretskii [this message]
2019-04-22 6:56 ` Mattias Engdegård
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=83lg028son.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=christopher.howard@qlfiles.net \
--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).