Compiled

Compiled

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

Details

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

Examples

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]=

See Also

FindFit  FindMaximum  FindMinimum  FindRoot  NDSolve  NIntegrate  NProduct  NSum  Play

Tutorials

Introduced in 1991
(2.0)