# Root

## Overview

![The Root Node.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-46008cef26be81d926913f9ca8cd66aac8285801%2Frootupdatedimage20231.png?alt=media)

**Root** calculates the *nth root* of a number, where *n* is called the *degree of the root*. This **Node** outputs the number which, when raised to the *nth power*, yields the *base* given as input.

The most common example of **Root** operations is finding the *square* (degree 2) root, or *cubic* (degree 3) *root* of a number. However, this can also be used for higher degrees.

| `Base` | `Degree` | `Output` |
| ------ | -------- | -------- |
| 9      | 2        | 3        |
| 13824  | 3        | 24       |
| 160000 | 4        | 20       |
| 1024   | 10       | 2        |

[**Scope**](https://docs.incari.com/incari-studio/2023.1/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Root Node Attributes.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-f7add6f2745ccd0063b1419f8c2b5fe49b3e4395%2Fnode-root2-attr.png?alt=media)

| Input            | Type      | Description                                                                        |
| ---------------- | --------- | ---------------------------------------------------------------------------------- |
| `Default Base`   | **Float** | The default value of `Base`, if no value is provided in the `Base` **Socket**.     |
| `Default Degree` | **Float** | The default value of `Degree`, if no value is provided in the `Degree` **Socket**. |

## Inputs

| Input             | Type      | Description                                                           |
| ----------------- | --------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse** | A standard input **Pulse**, to trigger the execution of the **Node**. |
| `Base`            | **Float** | The value you want to find the *nth root* of.                         |
| `Degree`          | **Float** | The degree of the root.                                               |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard output **Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Output`           | **Float** | The *nth root* (defined in `Degree`) of `Base`.                                                                                        |

## See Also

* [**Power**](https://docs.incari.com/incari-studio/2023.1/toolbox/math/power)

## External Links

* [*Root*](https://www.mathopenref.com/root.html) on Math Open Reference.
* [*nth root*](https://en.wikipedia.org/wiki/Nth_root) on Wikipedia.
