Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

Roots

Square and non-square roots.

Example

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

Function

root
Element
Element
Element functions can be customized with set and show rules.

A general root.

$ root(3, x) $
Preview

index
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

Which root of the radicand to take.

Default value:

none

radicand
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The expression to take the root of.

sqrt

A square root.

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

radicand
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The expression to take the square root of.

Open official docs

Search