📜  \ root … \ of-Tex命令(1)

📅  最后修改于: 2023-12-03 15:13:13.614000             🧑  作者: Mango

Title: \root … \of-TeX Command

Description

The \root...\of command in TeX is used to typeset a mathematical expression with a radical as the root of that expression. This command is useful when you want to show a square or cube root, or generally any root of a number. It is similar to the more commonly used \sqrt command, but allows for more flexibility in the positioning of the root.

Syntax

The command has the following syntax:

\root n \of {expression}

where n is an integer representing the degree of the root.

Parameters
  • n: an integer representing the degree of the root. For example, if n=2, the command will typeset a square root.
  • expression: the expression to be rooted.
Usage

The \root...\of command can be used in math mode, and most commonly appears in the context of a fraction or exponent. Here are some examples of usage:

  • To typeset a square root:
\[\sqrt{a^2+b^2}\]

can be written as

\[\root 2 \of {a^2+b^2}\]
  • To typeset a cubic root:
\[\sqrt[3]{x}\]

can be written as

\[\root 3 \of x\]
  • To typeset a fourth root:
\[\sqrt[4]{2}\]

can be written as

\[\root 4 \of 2\]
  • To typeset nested roots:
\[\sqrt{\sqrt{\sqrt{a}}}\]

can be written as

\[\root 2 \of {\root 2 \of {\root 2 \of a}}\]
Conclusion

The \root...\of command in TeX is a versatile command for typesetting mathematical expressions with roots of arbitrary degree. It allows for more flexibility in the positioning of the root compared to the \sqrt command, and can be used in many different contexts.