| 1 |
local a = BinaryOperation.POWEXP({Integer(8), Integer(1) / Integer(2)}) |
| 2 |
local b = BinaryOperation.POWEXP({Integer(27), Integer(1) / Integer(3)}) |
| 3 |
local c = BinaryOperation.POWEXP({Integer(36), Integer(1) / Integer(2)}) |
| 4 |
local d = BinaryOperation.POWEXP({Integer(36264691), Integer(1) / Integer(2)}) |
| 5 |
local e = BinaryOperation.POWEXP({Integer(357911), Integer(1) / Integer(2)}) |
| 6 |
local f = BinaryOperation.ADDEXP({BinaryOperation.POWEXP({Integer(8), Integer(1) / Integer(2)}), BinaryOperation.POWEXP({Integer(32), Integer(1) / Integer(2)})}) |
| 7 |
|
| 8 |
starttest("rational powers") |
| 9 |
testeq(a:autosimplify(), "(2 * (2 ^ 1/2))", a) |
| 10 |
testeq(b:autosimplify(), "3", b) |
| 11 |
testeq(c:autosimplify(), "6", c) |
| 12 |
testeq(d:autosimplify(), "(331 * (331 ^ 1/2))", d) |
| 13 |
testeq(e:autosimplify(), "(71 * (71 ^ 1/2))", e) |
| 14 |
testeq(f:autosimplify(), "(6 * (2 ^ 1/2))", f) |
| 15 |
endtest() |