模板:Artanh
用法
{{ 阿坦 |开区间(-1,+1)}}中的实数
有效输入
开区间(-1,+1)中的实数作为参数。
示例
代码 结果 {{ 阿坦 |-0.95}} -1.8317808230648 {{ 阿坦 |-0.5}} -0.54930614433405 {{ 阿坦 |-0.3}} -0.30951960420311 {{ 阿坦 |0}} 0 {{ 阿坦 |0.3}} 0.30951960420311 {{ 阿坦 |0.5}} 0.54930614433405 {{ 阿坦 |0.95}} 1.8317808230648 {{artanh|{{tanh|-1}}} -0.99999999999999 {{artanh|{{tanh|-0.5}}} -0.5 {{artanh|{{tanh|0}}} 0 {{artanh|{{tanh|0.5}}}}} 0.5 {{artanh|{{tanh|1}}} 0.99999999999999
代码 结果 {{ 阿坦 |i} } Artanh错误:参数必须是打开间隔(-1,+1)中的实数 {{ 阿坦 |-5} } Artanh错误:参数必须是开区间(-1,+1)中的实数 {{ 阿坦 |-2}} Artanh错误:参数必须是打开间隔(-1,+1)中的实数 {{ 阿坦 |-1}} Artanh错误:参数必须是开区间(-1,+1)中的实数 {{ 阿坦 |1}} Artanh错误:参数必须是打开间隔(-1,+1)中的实数 {{ 阿坦 |2}} Artanh错误:参数必须是打开间隔(-1,+1)中的实数 {{ 阿坦 |5}} Artanh错误:参数必须是打开间隔(-1,+1)中的实数
代码
{{ifnum |{{{1|不是数字}}} |{{#ifexpr:abs({{1}})<1 |{{表达式:(ln((1+({{1}}))/(1-({{10}}())))/2}} |{{error|Artanh error:参数必须是打开间隔(-1,+1)}}中的实数 }} |{{error|Artanh error:参数必须是打开间隔(-1,+1)}}中的实数 }}
另请参见