From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Calc; Div by 0 in solving system Date: Mon, 22 Apr 2019 09:23:04 +0300 Message-ID: <83lg028son.fsf@gnu.org> References: <1555861067.5469.3.camel@qlfiles.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="111032"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Christopher Howard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 22 08:33:01 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hISVh-000Sas-1H for ged-emacs-devel@m.gmane.org; Mon, 22 Apr 2019 08:33:01 +0200 Original-Received: from localhost ([127.0.0.1]:33088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hISVY-00064R-Kb for ged-emacs-devel@m.gmane.org; Mon, 22 Apr 2019 02:32:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hISVO-000640-Ia for emacs-devel@gnu.org; Mon, 22 Apr 2019 02:32:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hISME-00047P-U9; Mon, 22 Apr 2019 02:23:14 -0400 Original-Received: from [176.228.60.248] (port=1116 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hISME-00039P-81; Mon, 22 Apr 2019 02:23:14 -0400 In-reply-to: <1555861067.5469.3.camel@qlfiles.net> (message from Christopher Howard on Sun, 21 Apr 2019 07:37:47 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235751 Archived-At: > From: Christopher Howard > 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 () #)() calc-do(#f(compiled-function () #) 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)