26
votes
4answers
1k views

Compiling more functions that don't call MainEvaluate

I would like to use Compile with functions defined outside Compile. For example if I have the two basic functions F and G F[x_] := x + 2 G[x_] := x And I want ...
12
votes
2answers
454 views

How can I compile this function

I want to simplify my function f1 to f2, but f2 can't be compiled. How can I make it ...