# [`*`](https://bpl.fast.ai//glyphs/star.html) — Exponential / Exponent

Function. Hanzi: `幂` (`冪`). Ranks: `0` monadic, `0 0` dyadic

`*Y`: e<sup>Y</sup>. Pervasive.

```bpl
*0                ⍝ 1
```

`X*Y`: X<sup>Y</sup>. Whole powers of integers give integers, and whole powers of rationals (`ᵣ`) give rationals. An integer power with a negative exponent is floored, as integer [`÷`](obelus.md) is:

```bpl
2ₓ*3ₓ             ⍝ 8ₓ
2ₓ*¯3ₓ            ⍝ 0ₓ
¯2ₓ*¯3ₓ           ⍝ ¯1ₓ
2ᵣ*¯3ₓ            ⍝ 1ᵣ8
```

This holds under dynamic and static kinds and at every width. With a negative exponent, base `1ₓ` gives `1ₓ`, base `¯1ₓ` gives `1ₓ` or `¯1ₓ` as the exponent is even or odd, and base `0ₓ` gives the largest integer: i64's under dynamic kinds, where integers widen, and the width's own for fixed widths and under static kinds.

Other powers use principal complex branches where needed.

```bpl
¯1*0.5            ⍝ 0j1
```

See also [Power `⍣`](star-diaeresis.md).

## Inverse

`*⁻` is [`⊛`](https://bpl.fast.ai//glyphs/circle-star.html). With the right argument fixed, `(*↢X)⁻Y` is `Y*÷X`.

```bpl
2*⁻8      ⍝ 3
*↢2 ⁻ 9   ⍝ 3
```

## Fast combinations

BPL computes this combination with a dedicated algorithm. [Trains](../evaluation.md#trains) says which spellings BPL recognises.

| Combination | Applies to | Benefit |
|--- |--- |--- |
| `¯1+*Y` or `(*Y)-1` | real `Y` | expm1 keeps the digits of a small `Y` that subtracting 1 from `*Y` cancels |

On complex numbers, `¯1+*Y` computes `*Y`, then subtracts 1.

```bpl
f←¯1+* ◇ f 1E¯17         ⍝ 1ₑ¯17
```
