Function: math-simplify-one-divisor
math-simplify-one-divisor is a byte-compiled function defined in
calc-alg.el.gz.
Signature
(math-simplify-one-divisor NP DP)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-alg.el.gz
(defun math-simplify-one-divisor (np dp)
(let ((temp (math-combine-prod (car np) (car dp) math-simplify-divisor-nover
math-simplify-divisor-dover t))
op)
(if temp
(progn
(and (not (memq (car math--simplify-divide-expr)
'(/ calcFunc-eq calcFunc-neq)))
(math-known-negp (car dp))
(setq op (assq (car math--simplify-divide-expr)
calc-tweak-eqn-table))
(setcar math--simplify-divide-expr (nth 1 op)))
(setcar np (if math-simplify-divisor-nover (math-div 1 temp) temp))
(setcar dp 1))
(and math-simplify-divisor-dover (not math-simplify-divisor-nover)
(eq (car math--simplify-divide-expr) '/)
(eq (car-safe (car dp)) 'calcFunc-sqrt)
(Math-integerp (nth 1 (car dp)))
(progn
(setcar np (math-mul (car np)
(list 'calcFunc-sqrt (nth 1 (car dp)))))
(setcar dp (nth 1 (car dp))))))))