Topic: `APLX Help` : `Help on APL language` : `APL Primitives` : `* To the power of`
[ Previous | Next | Contents | Index | APL Home ]

# `*` To the power of

Two-argument form  See also one-argument form 'e' to power

Raises the left-hand argument to the power of the right-hand argument.

```             2 * 3                   (2 to the power 3, or 2 cubed)
8
¯1 * 2 3 4
1 ¯1 1                        (¯1 to the power 2 3 4)
2 * 0.5
1.414213562                   (Square root of 2)
2 4 6 8 16 * 2
4 16 36 64 256                (Square of 2 4 6 8 16)
¯1*0.5                  (No unreal number result allowed)
DOMAIN ERROR
¯1*0.5
^
```

If the right argument is negative, the result is the reciprocal of the result obtained from using a right argument which is the absolute value of the negative argument.

```             2*¯3
0.125
÷2*3                    (Reciprocal of 2*3)
0.125
```
```             ((⍳3)(2 2⍴⍳4))*2
1 4 9  1  4
9 16
```

Topic: `APLX Help` : `Help on APL language` : `APL Primitives` : `* To the power of`
[ Previous | Next | Contents | Index | APL Home ]