| 1075 | | (if (> (nth 2 expr) 0) |
|---|
| 1076 | | (or (and (or (> math-mt-many 500000) (< math-mt-many -500000)) |
|---|
| 1077 | | (math-expand-power (nth 1 expr) (nth 2 expr) |
|---|
| 1078 | | nil t)) |
|---|
| 1079 | | (list '* |
|---|
| 1080 | | (nth 1 expr) |
|---|
| 1081 | | (list '^ (nth 1 expr) (1- (nth 2 expr))))) |
|---|
| 1082 | | (if (< (nth 2 expr) 0) |
|---|
| 1083 | | (list '/ 1 (list '^ (nth 1 expr) (- (nth 2 expr)))))))) |
|---|
| | 1089 | (if (and (eq calc-matrix-mode 'matrix) |
|---|
| | 1090 | (> (nth 2 expr) 1)) |
|---|
| | 1091 | (if (= (nth 2 expr) 2) |
|---|
| | 1092 | (math-add-or-sub (list '* (nth 1 (nth 1 expr)) (nth 1 expr)) |
|---|
| | 1093 | (list '* (nth 2 (nth 1 expr)) (nth 1 expr)) |
|---|
| | 1094 | nil (eq (car (nth 1 expr)) '-)) |
|---|
| | 1095 | (math-add-or-sub (list '* (nth 1 (nth 1 expr)) |
|---|
| | 1096 | (list '^ (nth 1 expr) |
|---|
| | 1097 | (1- (nth 2 expr)))) |
|---|
| | 1098 | (list '* (nth 2 (nth 1 expr)) |
|---|
| | 1099 | (list '^ (nth 1 expr) |
|---|
| | 1100 | (1- (nth 2 expr)))) |
|---|
| | 1101 | nil (eq (car (nth 1 expr)) '-))) |
|---|
| | 1102 | (if (> (nth 2 expr) 0) |
|---|
| | 1103 | (or (and (or (> math-mt-many 500000) (< math-mt-many -500000)) |
|---|
| | 1104 | (math-expand-power (nth 1 expr) (nth 2 expr) |
|---|
| | 1105 | nil t)) |
|---|
| | 1106 | (list '* |
|---|
| | 1107 | (nth 1 expr) |
|---|
| | 1108 | (list '^ (nth 1 expr) (1- (nth 2 expr))))) |
|---|
| | 1109 | (if (< (nth 2 expr) 0) |
|---|
| | 1110 | (list '/ 1 (list '^ (nth 1 expr) (- (nth 2 expr))))))))) |
|---|