Constant
是一个属性,指明一个符号相对于所有参数导数为零.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (2)
constants = Map[ToExpression, Select[Names["System`*"], MemberQ[Attributes[#], Constant]&]]它们都是 NumericQ:
Map[NumericQ, constants]它们都表示确切数,可以用 N 计算任意精度:
TableForm[Table[{c, N[c], N[c, 24]}, {c, constants}]]Block[{f}, SetAttributes[f, Constant];Dt[g[f[x, y], x, y]]]这不会影响其后的 Dt 计算:
Dt[g[f[x, y], x, y]]在 Dt 中用 Constants 选项是类似的,但具有完全无歧义的输出:
Dt[g[f[x, y], x, y], Constants -> f]参见
相关指南
-
▪
- 属性
历史
1988年引入 (1.0)
文本
Wolfram Research (1988),Constant,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Constant.html.
CMS
Wolfram 语言. 1988. "Constant." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Constant.html.
APA
Wolfram 语言. (1988). Constant. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Constant.html 年
BibTeX
@misc{reference.wolfram_2026_constant, author="Wolfram Research", title="{Constant}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Constant.html}", note=[Accessed: 08-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_constant, organization={Wolfram Research}, title={Constant}, year={1988}, url={https://reference.wolfram.com/language/ref/Constant.html}, note=[Accessed: 08-September-2026]}