981 |
|
|
982 |
;; Integration by substitution, for various likely sub-expressions. |
;; Integration by substitution, for various likely sub-expressions. |
983 |
;; (In first pass, we look only for sub-exprs that are linear in X.) |
;; (In first pass, we look only for sub-exprs that are linear in X.) |
984 |
(or (if math-linear-subst-tried |
(or (math-integ-try-linear-substitutions expr) |
985 |
(math-integ-try-substitutions expr) |
(math-integ-try-substitutions expr) |
|
(math-integ-try-linear-substitutions expr)) |
|
986 |
|
|
987 |
;; If function has sines and cosines, try tan(x/2) substitution. |
;; If function has sines and cosines, try tan(x/2) substitution. |
988 |
(and (let ((p (setq rat-in (math-expr-rational-in expr)))) |
(and (let ((p (setq rat-in (math-expr-rational-in expr)))) |