跳转到内容

模板:Sqrt/doc

维基百科,自由的百科全书

Usage

[编辑]

{{sqrt|2}} gives 2.

This template is an alternative to using the LaTeX \sqrt rendered in-line, and will make the square root appear as text with the √ symbol and then the number (entered as the first parameter in this template) with an overline. Do not use this inside <math> tags.

  • 当然也可以选用<math></math>输出:
    {{Sqrt|2|3|use math=yes}} gives .
  • 若要放置于<math></math>中请同时指定use mathin math为真,并且以{{#tag:math|}}来书写math标签:
    {{#tag:math| 2 + {{Sqrt|2|3|use math=yes|in math=yes}} }} gives
  • 若未启用use math则无法正常显示多次方根:
    {{Sqrt|2|3}} gives 2

See also

[编辑]
  • {{Radic}}:可用于表示多次方根
  • {{Root}}:附加求值功能