Compiled

Compiled
is an option for various numerical and plotting functions which specifies whether the expressions they work with should automatically be compiled.

DetailsDetails

  • Compiled->True automatically creates compiled functions.
  • You should set Compiled->False if you need to use highprecision numbers.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

On rare occasions, machine-number compilation may produce unexpected results:

In[1]:=
Click for copyable input
Out[1]=

Here, the optimization of treating machine underflow as zero affects the function:

In[2]:=
Click for copyable input
Out[2]=

Use Compiled->False to prevent this:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
Introduced in 1991
(2.0)