Addition-chain exponentiation: Difference between revisions
Content added Content deleted
m (no negative n) |
m (typo) |
||
Line 1,131: | Line 1,131: | ||
println("1.00002550055251^27182 = ", pow(1.00002550055251, expchains[27182])) |
println("1.00002550055251^27182 = ", pow(1.00002550055251, expchains[27182])) |
||
println("1.00002550055251^(27182 * 31415) = ", pow(BigFloat(pow(1.00002550055251, expchains[27182])), expchains[31415])) |
println("1.00002550055251^(27182 * 31415) = ", pow(BigFloat(pow(1.00002550055251, expchains[27182])), expchains[31415])) |
||
println("1.000025 + 0.000058i)^27182 = ", pow(Complex(1.000025, 0.000058), expchains[27182])) |
println("(1.000025 + 0.000058i)^27182 = ", pow(Complex(1.000025, 0.000058), expchains[27182])) |
||
println("1.000022 + 0.000050i)^31415 = ", pow(Complex(1.000022, 0.000050), expchains[31415])) |
println("(1.000022 + 0.000050i)^31415 = ", pow(Complex(1.000022, 0.000050), expchains[31415])) |
||
x = sqrt(1/2) |
x = sqrt(1/2) |
||
matrixA = [x 0 x 0 0 0; 0 x 0 x 0 0; 0 x 0 -x 0 0; -x 0 x 0 0 0; 0 0 0 0 0 1; 0 0 0 0 1 0] |
matrixA = [x 0 x 0 0 0; 0 x 0 x 0 0; 0 x 0 -x 0 0; -x 0 x 0 0 0; 0 0 0 0 0 1; 0 0 0 0 1 0] |
||
Line 1,167: | Line 1,167: | ||
1.00002550055251^27182 = 1.9999999999792688 |
1.00002550055251^27182 = 1.9999999999792688 |
||
1.00002550055251^(27182 * 31415) = 7.199687435551025768365237017391630520475805934721292725697031724530209692195819e+9456 |
1.00002550055251^(27182 * 31415) = 7.199687435551025768365237017391630520475805934721292725697031724530209692195819e+9456 |
||
1.000025 + 0.000058i)^27182 = -0.01128636963542673 + 1.9730308496660347im |
(1.000025 + 0.000058i)^27182 = -0.01128636963542673 + 1.9730308496660347im |
||
1.000022 + 0.000050i)^31415 = 0.00016144681325535107 + 1.9960329014194498im |
(1.000022 + 0.000050i)^31415 = 0.00016144681325535107 + 1.9960329014194498im |
||
matrix A ^ 27182 = |
matrix A ^ 27182 = |
||
6×6 Matrix{Float64}: |
6×6 Matrix{Float64}: |