is an option for various numerical and plotting functions which specifies whether the expressions they work with should automatically be compiled.
Compiled
is an option for various numerical and plotting functions which specifies whether the expressions they work with should automatically be compiled.
Examples
Basic Examples (1)
On rare occasions, machine-number compilation may produce unexpected results:
FindRoot[If[1 / (1 + Exp[x]) == 0, 0, -1] + x / 900, {x, 0, 1000}]By default, the function is compiled by FindRoot, so that machine overflow and underflow are not caught:
cf = Compile[{{x, _Real}}, If[1 / (1 + Exp[x]) == 0, 0, -1] + x / 900];Plot[cf[x], {x, 0, 1000}]Use Compiled->False to prevent this:
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}]Tech Notes
Related Guides
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), Compiled, Wolfram Language function, https://reference.wolfram.com/language/ref/Compiled.html.
CMS
Wolfram Language. 1991. "Compiled." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Compiled.html.
APA
Wolfram Language. (1991). Compiled. Wolfram Language & System Documentation Center. Retrieved from 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-June-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-June-2026]}