注意:该中文文档为社区驱动的非官网文档,可能存在错译、漏译或过时等问题,请以官网文档 Documentation 为准,如发现错漏,也欢迎 您的贡献镜像)。Typst 非官方中文交流 QQ 群:793548390
Warning: the Chinese document is a community-driven non-official document, there may be mistranslation, omission or outdated problems, please refer to the official website documentation.
Typst 中文文档

Roots 函数族

平方根或其他次方根。

Example

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

函数族

root

方根函数。

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

index
none content
位置参数
位置参数按顺序传入,不带名称。
可用 Set 规则
可以使用 Set 规则,为函数后续所有的使用设置默认参数。

要开几次方,即根式的指数。

默认:none

radicand
content
必需参数位置参数
位置参数按顺序传入,不带名称。

进行方根运算的表达式,即根式的底数。

sqrt

平方根。

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

radicand
content
必需参数位置参数
位置参数按顺序传入,不带名称。

要开平方根的表达式。