Template:Sqrt
跳转到导航
跳转到搜索
√{{{1}}}
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
| File:Edit-copy green with red question mark.svg | 此模板的文档不存在、不全面或不能详细描述其功能及/或其代码中的参数。请帮助扩充并改进其文档。 |
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> \sqrt[ 3 ]{ 2} </math>.
- 若要放置於
<math></math>中請同時指定use math與in math為真,並且以{{#tag:math|}}來書寫math標籤:{{#tag:math| 2 + {{Sqrt|2|3|use math=yes|in math=yes}} }}gives <math> 2 + \sqrt[ 3 ]{ 2} </math>
- 若未啟用
use math則無法正常顯示多次方根:{{Sqrt|2|3}}gives √2