Compiled
是各种数值函数和绘图函数的一个选项,指定是否自动编译它们作用的表达式.
范例
基本范例 (1)
FindRoot[If[1 / (1 + Exp[x]) == 0, 0, -1] + x / 900, {x, 0, 1000}]默认情况下,由 FindRoot 编译函数,因此不会捕获机器上溢和下溢:
cf = Compile[{{x, _Real}}, If[1 / (1 + Exp[x]) == 0, 0, -1] + x / 900];Plot[cf[x], {x, 0, 1000}]FindRoot[If[1 / (1 + Exp[x]) == 0, 0, -1] + x / 900, {x, 0, 1000}, Compiled -> False]Plot[If[1 / (1 + Exp[x]) == 0, 0, -1] + x / 900, {x, 0, 1000}]技术笔记
-
▪
- 图形选项 ▪
- Wolfram 语言表达式的编译
历史
1991年引入 (2.0)
文本
Wolfram Research (1991),Compiled,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Compiled.html.
CMS
Wolfram 语言. 1991. "Compiled." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Compiled.html.
APA
Wolfram 语言. (1991). Compiled. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Compiled.html 年
BibTeX
@misc{reference.wolfram_2026_compiled, author="Wolfram Research", title="{Compiled}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/Compiled.html}", note=[Accessed: 13-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_compiled, organization={Wolfram Research}, title={Compiled}, year={1991}, url={https://reference.wolfram.com/language/ref/Compiled.html}, note=[Accessed: 13-September-2026]}