TypstDocumentation

Roots

Square and non-square roots.

Example

$ sqrt(3 - 2 sqrt(2)) = sqrt(2) - 1 $
$ root(3, x) $
Preview

Functions

rootElement
Question mark

A general root.

math.root() -> content
$ root(3, x) $
Preview

index
none or content
Positional
Question mark
Settable
Question mark

Which root of the radicand to take.

Default: none

radicand
content
RequiredPositional
Question mark

The expression to take the root of.

sqrt

A square root.

math.sqrt() -> content
$ sqrt(3 - 2 sqrt(2)) = sqrt(2) - 1 $
Preview

radicand
content
RequiredPositional
Question mark

The expression to take the square root of.