Hello,(adsbygoogle = window.adsbygoogle || []).push({});

I was looking at ways I could optimize a simulation I wrote in Mathematica and came across the command compile. From what I understand, it defines a function that expects a numerical value for the variable. But I don't understand how this would be any different from just ordinarily defining a function using " := "

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Compiled Functions in Mathematica

**Physics Forums | Science Articles, Homework Help, Discussion**