# Power (function)

This page describes the dyadic function. For the monadic function that uses $e$ as a base, see Exponential. For the iteration operator, see Power (operator).
 `*`

Power (`*`) is a dyadic scalar function that computes the exponentiation function of the two arguments, so that `X*Y` is `X` raised to the power `Y`. Power shares the glyph `*` with the monadic arithmetic function Exponential.

## Examples

```      2*¯1 0 1 2 3 4 5
0.5 1 2 4 8 16 32
```

A common technique is to choose sign based on a Boolean array:

```      ¯1*1 0 0 1 0
¯1 1 1 ¯1 1
```

## Properties

For positive integer `Y`, `X*Y` equals the product of `Y` copies of `X`. When `Y` is 0, `X*Y` equals 1, possibly except when `X` is also 0 (since zero to the power of zero is undefined in mathematics).

```      3*5
243
×/5⍴3
243
1 2 3*0
1 1 1
```

Negating the exponent (right argument) gives the reciprocal of the return value.

```      (2*¯4)=÷2*4
1
```

If the exponent is the reciprocal of some number n, the result is the n-th root of the base. For example, a right argument of `÷2` gives the square root.

```      3*2
9
9*÷2
3
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.7458959,"math_prob":0.99456006,"size":1207,"snap":"2020-24-2020-29","text_gpt3_token_len":379,"char_repetition_ratio":0.13881962,"word_repetition_ratio":0.17872341,"special_character_ratio":0.30074564,"punctuation_ratio":0.08550186,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99678355,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-02T21:31:29Z\",\"WARC-Record-ID\":\"<urn:uuid:5105e252-4bce-4049-a7cd-a0da2c79b8a1>\",\"Content-Length\":\"33256\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8d5ac795-a555-42be-8923-1ef34956841a>\",\"WARC-Concurrent-To\":\"<urn:uuid:74d9d8c8-c3ee-450f-a3c3-c20c25ca24e4>\",\"WARC-IP-Address\":\"89.107.61.216\",\"WARC-Target-URI\":\"https://aplwiki.com/wiki/Power_(function)\",\"WARC-Payload-Digest\":\"sha1:33PGDMOORKWAXYTX3LUFX3MR64KBHMP5\",\"WARC-Block-Digest\":\"sha1:RMVESRVT5JHQ2AL4LNUCIWWT2N4HTPLM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655880243.25_warc_CC-MAIN-20200702205206-20200702235206-00131.warc.gz\"}"}