Changeset 3988 for vendor/emacs-CVS_HEAD/lisp/calc/calc-arith.el
- Timestamp:
- 11/26/05 08:33:26 (3 years ago)
- Files:
-
- vendor/emacs-CVS_HEAD/lisp/calc/calc-arith.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
vendor/emacs-CVS_HEAD/lisp/calc/calc-arith.el
r3939 r3988 375 375 ((eq (car-safe a) '^) 376 376 (math-check-known-square-matrixp (nth 1 a))) 377 ((or 378 (eq (car-safe a) '*) 379 (eq (car-safe a) '+) 380 (eq (car-safe a) '-)) 381 (and 382 (math-check-known-square-matrixp (nth 1 a)) 383 (math-check-known-square-matrixp (nth 2 a)))) 377 384 (t 378 385 (let ((decl (if (eq (car a) 'var) … … 1848 1855 (list '/ a b))) 1849 1856 1857 ;;; Division from the left. 1858 (defun calcFunc-ldiv (a b) 1859 (if (math-known-scalarp a) 1860 (math-div b a) 1861 (math-mul (math-pow a -1) b))) 1850 1862 1851 1863 (defun calcFunc-mod (a b) … … 1961 1973 (math-known-square-matrixp (nth 1 a)) 1962 1974 (math-known-square-matrixp (nth 2 a))) 1963 (list '* (list '^ (nth 2 a) -1) (list '^ (nth 1 a) -1)) 1975 (math-mul (math-pow-fancy (nth 2 a) -1) 1976 (math-pow-fancy (nth 1 a) -1)) 1964 1977 (list '^ a b))) 1965 1978 ((and (eq (car-safe a) '*)
