テンプレート:Powe

提供:脳科学辞典
2015年3月14日 (土) 12:15時点におけるNijcadmin (トーク | 投稿記録)による版 (1版)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

POWer as Expression.

Allows a number be raised to an integer power from -150 to 150. Powers of greater than 150 are treated as 150 and those less than -150 as -150. Unlike

, the result is here an expression, #expr or #ifexpr still has to be applied. This allows further computations with the result, even if by itself it would be represented in scientific notation.

Usage:
{{powe|<base>|<power>}}

Example:

"{{powe|2|10}}" gives "(2*2*2*2*2*2*2*2*2*2)" [1]

{{#expr:{{powe|2|10}}}} gives 1024.

The parentheses are needed for a case like this:

{{#expr:1/{{powe|2|10}}}} gives 0.0009765625.