diff lisp/calc/calc-arith.el @ 66866:28b28c1cd22f

(calcFunc-ldiv): Check to see if the first argument is a scalar.
author Jay Belanger <jay.p.belanger@gmail.com>
date Mon, 14 Nov 2005 20:19:00 +0000
parents 5827a5ed37b9
children 1da5034b091b 7beb78bc1f8e
line wrap: on
line diff
--- a/lisp/calc/calc-arith.el	Mon Nov 14 20:13:46 2005 +0000
+++ b/lisp/calc/calc-arith.el	Mon Nov 14 20:19:00 2005 +0000
@@ -1856,8 +1856,9 @@
 
 ;;; Division from the left.
 (defun calcFunc-ldiv (a b)
-  (math-mul (math-pow a -1) b))
-
+  (if (math-known-scalarp a)
+      (math-div b a)
+    (math-mul (math-pow a -1) b)))
 
 (defun calcFunc-mod (a b)
   (math-normalize (list '% a b)))